/* 🎨 PALETA DE COLORES
   Azul marino: #001f3f
   Azul medio: #004080
   Azul claro: #0074D9
   Gris claro: #f4f4f4
   Blanco: #ffffff
*/

/* === RESETEO GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: #f4f7fb;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.main-header {
  width: 100%;
  background-color: #003366;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  position: fixed; /* 🔁 CAMBIAR sticky → fixed */
  top: 0;
  left: 0;
  z-index: 999;
  background: #001f3f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
main {
  margin-top: 120px; /* Evita que el header tape el contenido */
}



.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.logo-redondo {
    width: 85px;
    height:85px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgb(0, 229, 255);
    margin-bottom: 5px;
    box-shadow: 0 0 8px rgb(255, 255, 255);
}



.main-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* === CONTENEDOR PRINCIPAL === */
main {
    flex: 1;
    padding: 30px 20px;
}

/* === FORMULARIOS (LOGIN / REGISTRO) === */
.login-container,
.register-container {
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.login-container:hover,
.register-container:hover {
    transform: translateY(-4px);
}

.login-container h2,
.register-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #004080;
    font-size: 1.6rem;
    font-weight: 700;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #001f3f;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus {
    outline: none;
    border-color: #0074D9;
    box-shadow: 0 0 6px rgba(0, 116, 217, 0.4);
}

form button {
    width: 100%;
    background: linear-gradient(135deg, #004080, #0074D9);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

form button:hover {
    background: linear-gradient(135deg, #002a5c, #005bb5);
    transform: translateY(-2px);
}

form a {
    display: block;
    text-align: center;
    color: #004080;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
}

form a:hover {
    text-decoration: underline;
}

/* === MENSAJES DE ERROR === */
.error {
    background: #ffe5e5;
    color: #b30000;
    border: 1px solid #b30000;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.1);
}

/* === PRODUCTOS === */
.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.producto-card {
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.producto-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,116,217,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.producto-card:hover::before {
    opacity: 1;
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.producto-card h3 {
    color: #001f3f;
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.producto-card button {
    background: linear-gradient(135deg, #004080, #0074D9);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s;
}

.producto-card button:hover {
    background: linear-gradient(135deg, #002a5c, #005bb5);
    transform: scale(1.05);
}

/* === BUSCADOR === */
.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.search-bar:focus-within {
    box-shadow: 0 0 10px rgba(0, 116, 217, 0.4);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.search-bar span {
    font-size: 1.3rem;
    color: #004080;
    margin-right: 10px;
}

/* === DETALLE DE PRODUCTO === */
.detalle-container {
    max-width: 520px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detalle-container img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.detalle-container h2 {
    margin-top: 15px;
    color: #001f3f;
}

.detalle-container p {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.detalle-container .btn-volver {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #004080, #0074D9);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.detalle-container .btn-volver:hover {
    background: linear-gradient(135deg, #002a5c, #005bb5);
    transform: translateY(-2px);
}

/* === PIE DE PÁGINA === */
.main-footer {
    background: #001f3f;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 0.9rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .nav ul {
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    .login-container,
    .register-container {
        width: 90%;
    }

    .productos-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .producto-card img {
        height: 150px;
    }

    .search-bar {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.4rem;
    }

    form button {
        font-size: 0.9rem;
    }

    .producto-card h3 {
        font-size: 1rem;
    }
}



/* === ESTILOS PARA DETALLE DEL PRODUCTO === */
.detalle-producto {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.detalle-producto img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  margin-bottom: 25px;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detalle-producto h2 {
  font-size: 2rem;
  color: #00224d;
  margin-bottom: 15px;
  text-align: center;
}

.detalle-producto p.descripcion {
  max-width: 700px;          /* 🔹 Limita el ancho del texto */
  text-align: justify;       /* 🔹 Texto alineado bonito */
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}

/* 🔹 RESPONSIVE: se adapta en móviles */
@media (max-width: 768px) {
  .detalle-producto p.descripcion {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .detalle-producto img {
    max-width: 90%;
  }

  .detalle-producto h2 {
    font-size: 1.6rem;
  }
}



/* === AJUSTES DE DETALLE DE PRODUCTO === */
.detalle-producto {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}

.detalle-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  padding: 25px;
  text-align: center;
}

.detalle-container img {
  width: 80%;
  max-width: 300px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 10px;
}

.detalle-container h2 {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.detalle-container p {
  color: #444;
  font-size: 0.9rem;  /* 🔹 Más pequeño */
  line-height: 1.4;
  margin-bottom: 15px;
}

/* 📱 Ajuste para móviles */
@media (max-width: 600px) {
  .detalle-container {
    max-width: 330px;
    padding: 20px;
  }

  .detalle-container p {
    font-size: 0.85rem;  /* 🔹 Más pequeño aún en móvil */
    text-align: justify;
  }

  .detalle-container h2 {
    font-size: 1.1rem;
  }
  
}
/* === AJUSTE RESPONSIVO DETALLE DE PRODUCTO === */
.detalle-producto {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}

.detalle-container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-width: 380px;
  width: 100%;
  padding: 20px;
  text-align: center;
}

.detalle-container img {
  width: 85%;
  max-width: 280px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 10px;
}

.detalle-container h2 {
  color: #003366;
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 8px;
}

.detalle-container p {
  color: #333;
  font-size: clamp(0.78rem, 2.5vw, 0.95rem);
  line-height: 1.3; /* 🔹 Menor espacio entre líneas */
  text-align: justify;
  margin: 8px 0;
  word-spacing: normal;
  letter-spacing: normal;
}

/* 📱 Ajuste específico para pantallas muy pequeñas */
@media (max-width: 400px) {
  .detalle-container {
    padding: 15px;
    max-width: 300px;
  }

  .detalle-container img {
    max-width: 240px;
  }

  .detalle-container p {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}




















/* ---------------------- */
/* Diseño para detalle.php */
/* ---------------------- */
.detalle-producto {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #f0f4ff, #ffffff);
}

.detalle-card {
  display: flex;
  flex-wrap: wrap;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  transition: transform 0.3s ease;
}

.detalle-card:hover {
  transform: translateY(-3px);
}

.detalle-imagen {
  flex: 1 1 350px;
  text-align: center;
  background-color: #f9fafc;
  padding: 20px;
}

.detalle-imagen img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.detalle-imagen img:hover {
  transform: scale(1.05);
}

.detalle-info {
  flex: 1 1 400px;
  padding: 30px;
}

.detalle-info h2 {
  font-size: 1.8rem;
  color: #0a3c78;
  margin-bottom: 15px;
}

.detalle-info .descripcion {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.detalle-info .precio {
  font-size: 1.2rem;
  color: #0a3c78;
  margin-bottom: 30px;
}

.btn-volver {
  background-color: #0a3c78;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-volver:hover {
  background-color: #083262;
  transform: scale(1.05);
}

/* 📱 Diseño responsive */
@media (max-width: 768px) {
  .detalle-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detalle-info {
    padding: 20px;
  }

  .detalle-info h2 {
    font-size: 1.5rem;
  }

  .detalle-info .descripcion {
    font-size: 0.95rem;
  }

  .btn-volver {
    width: 100%;
    padding: 14px;
  }
}




















/* ======== BOTÓN "VER DETALLES" ======== */
.btn-detalle {
  display: inline-block;
  background-color: #007bff;
  color: white !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none !important;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-detalle:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  text-decoration: none !important;
}

/* ======== TARJETAS DE PRODUCTOS ======== */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.producto {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  max-width: 300px;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
}

/* ======== BUSCADOR ======== */
.buscador {
  text-align: center;
  margin: 20px 0;
}

.buscador input {
  width: 60%;
  max-width: 400px;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.buscador input:focus {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .buscador input {
    width: 80%;
  }

  .producto img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .producto {
    padding: 15px;
  }

  .producto img {
    height: 150px;
  }
}


/*sigue sinedo de productos*/
/* === PRODUCTOS === */
.productos {
  background: linear-gradient(to bottom, #f0f9ff, #dfefff);
  padding: 60px 20px;
  text-align: center;
  min-height: 80vh;
}

.productos h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #004d7a;
}

/* === BUSCADOR === */
.buscador {
  margin: 0 auto 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.buscador input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #0077b6;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.buscador input:focus {
  border-color: #023e8a;
  box-shadow: 0 0 10px rgba(0, 119, 182, 0.3);
}

.buscador::after {
  content: "🔍";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #0077b6;
}

/* === GRID DE PRODUCTOS === */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
  padding: 0 10px;
}

.producto {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.producto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.producto h3 {
  font-size: 1.1rem;
  color: #023e8a;
  margin-bottom: 15px;
  font-weight: bold;
}

.btn-detalle {
  background-color: #0077b6;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-detalle:hover {
  background-color: #023e8a;
}

/* === MENSAJE DE NO RESULTADOS === */
.no-resultados {
  text-align: center;
  color: #777;
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .productos {
    padding: 40px 15px;
  }

  .grid-productos {
    grid-template-columns: 1fr;
  }

  .producto img {
    height: 160px;
  }

  .producto h3 {
    font-size: 1rem;
  }

  .btn-detalle {
    padding: 8px 15px;
  }
}

/* === SECCIÓN PRODUCTOS === */

/* === BUSCADOR DE PRODUCTOS === */
.buscador-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.search-box {
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 0 10px rgba(0,64,128,0.5);
    transform: scale(1.03);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    border-radius: 50px;
    padding: 8px;
}

.search-box input::placeholder {
    color: #777;
    font-style: italic;
}

/* === MENSAJE LOGIN REQUERIDO === */
.bloque-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #f4f4f4;
}

.mensaje-login {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.mensaje-login h2 {
    color: #001f3f;
    margin-bottom: 10px;
}

.mensaje-login p {
    color: #333;
    margin-bottom: 20px;
    font-size: 1rem;
}

.botones-login button {
    background: #004080;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: 0.3s;
}

.botones-login .btn-secundario {
    background: #aaa;
}

.botones-login button:hover {
    transform: translateY(-3px);
    background: #002a5c;
}

/* === PRODUCTOS === */
.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
    z-index: 2;
}

.producto {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 15px;
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: translateY(-5px);
}

.producto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.producto h3 {
    color: #001f3f;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 600;
}

.producto button {
    margin-top: 10px;
    background: #004080;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.producto button:hover {
    background: #002a5c;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .productos {
        padding: 30px 15px;
    }
    .search-box {
        max-width: 90%;
    }
    .titulo-seccion {
        font-size: 1.6rem;
    }
}




















/* === INICIO (Diseño Moderno y Animado) === */
.inicio {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(120deg, #001f3f, #004080, #0074d9);
    background-size: 400% 400%;
    animation: gradienteFondo 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

@keyframes gradienteFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.inicio::after {
    content: "";
    background-image: url("../imagenes/fondo_inicio.jpg");
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    opacity: 0.2;
    z-index: 0;
}

.contenido-inicio {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    padding: 50px 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 700px;
    animation: aparecer 1s ease;
}

@keyframes aparecer {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-inicio {
    width: 120px;
    margin-bottom: 15px;
}

.contenido-inicio h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.contenido-inicio h1 span {
    color: #00baff;
}

.contenido-inicio p {
    margin: 15px 0 30px;
    font-size: 1.3rem;
    color: #f0f0f0;
}

.botones-inicio {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* === Botones con estilo moderno === */
.btn {
    text-decoration: none;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primario {
    background: linear-gradient(90deg, #00baff, #0074d9);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 186, 255, 0.4);
}

.btn-primario:hover {
    background: linear-gradient(90deg, #0074d9, #004080);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 186, 255, 0.6);
}

.btn-secundario {
    background: rgba(255,255,255,0.3);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-secundario:hover {
    background: rgba(255,255,255,0.8);
    color: #001f3f;
}

/* === Responsive === */
@media (max-width: 768px) {
    .contenido-inicio {
        padding: 35px 25px;
    }

    .contenido-inicio h1 {
        font-size: 2rem;
    }

    .contenido-inicio p {
        font-size: 1.1rem;
    }

    .logo-inicio {
        width: 90px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
















/* === SECCIÓN DE CONTACTO === */
.seccion.contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f4f4f4 0%, #e9efff 100%);
}

.contacto-container {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.contacto-container h2 {
    color: #001f3f;
    font-size: 2rem;
    margin-bottom: 15px;
}

.descripcion {
    color: #555;
    margin-bottom: 25px;
}

.info-contacto {
    margin-bottom: 25px;
    line-height: 1.8;
}

.info-contacto p {
    color: #333;
    font-size: 1rem;
}

/* === BOTÓN DE CONTACTO === */
.btn-contactanos {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s ease;
    margin-bottom: 25px;
}

.btn-contactanos:hover {
    background: #0e6b57;
    transform: scale(1.05);
}

/* === FORMULARIO === */
.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 8px rgba(0,64,128,0.3);
}

.form-contacto button {
    background: linear-gradient(135deg, #004080, #001f3f);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
}

.form-contacto button:hover {
    background: #002a5c;
    transform: scale(1.03);
}
.btn-contactanos::before {
    content: ' ';
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}


/* === ANIMACIÓN === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .contacto-container {
        padding: 30px 20px;
    }

    .contacto-container h2 {
        font-size: 1.6rem;
    }

    .form-contacto button {
        padding: 10px;
        font-size: 0.95rem;
    }

    .btn-contactanos {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}



/* === Fondo de inicio a pantalla completa === */
.inicio {
  position: relative;
  width: 100%;
  height: 100vh; /* ocupa toda la altura de la pantalla */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;

  /* Fondo con el logo */
  background: url("../imagenes/inicio.jpg") no-repeat center center fixed;
  background-size: cover; /* cubre toda la pantalla */
  background-attachment: fixed; /* hace que quede fijo al hacer scroll */
}

/* Capa de color semitransparente encima del fondo */
.inicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* oscurece un poco para que se lea el texto */
  z-index: 1;
}

/* Contenido del centro */
.contenido-inicio {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.contenido-inicio h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.contenido-inicio p {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 25px;
}

.botones-inicio .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  background: #004aad;
  transition: 0.3s;
  margin: 0 10px;
  font-weight: bold;
}

.botones-inicio .btn:hover {
  background: #002b5c;
}

.btn-secundario {
  background: #00a859;
}

.btn-secundario:hover {
  background: #007a43;
}

/* === Responsive === */
@media (max-width: 768px) {
  .contenido-inicio h2 {
    font-size: 1.8rem;
  }

  .contenido-inicio p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contenido-inicio h2 {
    font-size: 1.5rem;
  }

  .botones-inicio .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
}

/* 🌄 Fondo animado de la sección productos */
.productos {
    position: relative;
    min-height: 100vh;
    padding: 4rem 2rem;
    overflow: hidden;
    background: url("../imagenes/productosfondo.jpg") no-repeat center center/cover;
    animation: moverFondo 20s infinite alternate ease-in-out;
}

/* Oscurecer ligeramente para mejor contraste */
.productos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Título de la sección */
.productos h2 {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Buscador */
.buscador {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
}
.buscador input {
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    width: 80%;
    max-width: 400px;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Grid de productos */
.grid-productos {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas */
.producto {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.producto:hover {
    transform: translateY(-5px);
}
.producto img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}
.producto h3 {
    color: #003366;
    font-size: 1rem;
    margin: 0.8rem 0;
}

/* Botón de detalles */
.boton-detalle {
    margin-top: 10px;
}
.btn-detalle {
    background-color: #003366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}
.btn-detalle:hover {
    background-color: #0055aa;
}

/* Animación del fondo */
@keyframes moverFondo {
    0% {
        background-position: left center;
    }
    100% {
        background-position: right center;
    }
}


