@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Variables CSS --- */
:root {
    --primary-color: #507cc4; /* Azul principal */
    --background-color: #f9f5f0; /* Fondo general de secciones claras */
    --dark-color: #151515; /* Color oscuro para texto y títulos */
    --text-color-light: #555; /* Gris para textos de descripción */
    --success-color: #28a745; /* Color verde para el checkmark */
    --bg-light: #ecf0f1; /* Gris muy claro, usado en las reseñas */
    --border-color: #dfe6e9; /* Gris azulado para bordes, usado en las reseñas */
    --text-color-dark: #34495e; /* Azul grisáceo oscuro, usado en las reseñas */
}

/* --- HTML y Reseteo Básico --- */
html {
    font-size: 62.5%;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f7f3ed;
    overflow-x: hidden;
}

/* --- Utilidades --- */
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.heading-1 {
    text-align: center;
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 3rem;
}

/* --- Header Principal --- */
.main-header {
    background-color: var(--background-color);
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.header-logo-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-img {
    width: 7rem;
    height: auto;
    display: block;
}

.brand-name {
    font-size: 3rem;
    color: var(--dark-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- Botón hamburguesa --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    z-index: 1100;
    box-shadow: 0 2px 6px rgba(5, 223, 5, 0.2);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-and-search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu-and-search-wrapper {
        display: none;
        flex-direction: column;
        background-color: rgba(17, 17, 17, 0.40);

        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        padding: 1.5rem 0; /* Un poco más de padding arriba/abajo */
        height: 50vh; /* Manteniendo el "pedazo" de altura. Ajusta según necesites */
        overflow-y: auto;
        justify-content: center; /* Centra el contenido verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada para un efecto de "flotante" */
        backdrop-filter: blur(5px); /* Opcional: efecto de desenfoque detrás del menú (navegadores modernos) */
        -webkit-backdrop-filter: blur(5px); /* Para compatibilidad con Safari */
    }

    .menu-and-search-wrapper.active {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Más espacio entre los enlaces para mayor claridad */
        width: 100%;
        height: 100%; /* Asegura que el menú interno ocupe todo el espacio vertical del wrapper */
    }

    .menu a {
        color: #ecf0f1; /* Blanco brillante para alto contraste */
        /* Si usas un fondo claro (ej. rgba(240, 240, 240, 0.9)), usa un color de texto oscuro: */
        /* color: #333; */
        font-size: 2.8rem; /* Aumentado para un impacto visual fuerte */
        font-weight: 700; /* Extra negrita */
        text-align: center;
        text-decoration: none;
        padding: 0.7rem 0;
        width: 80%; /* Los enlaces ocupan el 80% del ancho del menú */
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
        border-radius: 5px; /* Bordes ligeramente redondeados para los elementos de menú */
    }

    .menu a:hover,
    .menu a:focus {
        background-color: rgba(255, 255, 255, 0.15); /* Fondo semitransparente más claro al pasar el ratón */
        color: #8aff8a; /* Un verde vibrante o un azul brillante para el hover (color de acento) */
        transform: scale(1.03); /* Ligero aumento de tamaño al pasar el ratón */
    }

    /* Estilo para el botón de cerrar (la X) */
    .close-button { /* Asegúrate de tener un elemento con esta clase para el botón X en tu HTML */
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        width: 45px; /* Un poco más grande */
        height: 45px;
        background-color: rgba(255, 255, 255, 0.2); /* Fondo semitransparente para el botón */
        color: white;
        font-size: 2.2rem; /* Tamaño de la X */
        border: none;
        border-radius: 50%; /* Hacemos el botón redondo */
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1200;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .close-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg); /* Animación de rotación al pasar el ratón */
    }
}

/* --- Navbar --- */
.container-navbar {
    background-color: var(--primary-color);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar .fa-bars {
    display: none;
    font-size: 2.5rem;
    color: #fff;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu li {
    list-style: none;
}

.menu a {
    text-decoration: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu a::after {
    content: '';
    width: 1.5rem;
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.menu a:hover::after {
    opacity: 1;
}

.menu a:hover {
    color: #fff;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 2rem;
    background-color: #fff;
    height: 4.4rem;
    overflow: hidden;
}

.search-form input {
    outline: none;
    font-family: inherit;
    border: none;
    width: 25rem;
    font-size: 1.6rem;
    padding: 0 2rem;
    color: #777;
    cursor: text;
}

.search-form input::-webkit-search-cancel-button {
    appearance: none;
}

.search-form .btn-search {
    border: none;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    cursor: pointer;
}

.btn-search i {
    font-size: 2rem;
    color: #fff;
}


/* --- Banner / Carrusel --- */
.carousel {
    height: 450px;
    width: 100%;
    background-image: url('/img/Inicio/LogoPrueba.png'); /* Asegúrate que la ruta sea correcta */
    background-size: cover;
    background-position: center -100px;
    position: relative;
    overflow: hidden;
}

.slide-textos {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
    width: 100%;
    text-align: center;
    color: #00ccff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    bottom: 120px;
}
.slide-textos.active {
    opacity: 1;
}

.caption h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.caption p {
    font-size: 2.3rem;
    line-height: 1.4;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.dot.active,
.dot:hover {
    background-color: rgb(111, 114, 165); /* Considera usar una variable aquí también */
    transform: scale(1.2);
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.contact-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 5rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    border: 2px solid white;
}

.call-btn {
    background-color: #5caeff; /* Azul suave */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(92, 174, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-btn:hover {
    background-color: #3b8ed6;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(59, 142, 214, 0.6);
}

.whatsapp-btn {
    background-color: #8ff0a4; /* Verde suave */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(143, 240, 164, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #4bc66c;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(75, 198, 108, 0.6);
}

/*Controlar animacion*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- VISTA MÓVIL --- */
@media (max-width: 768px) {
  .carousel {
    height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

.slide-textos {
  opacity: 0;
  transition: none;
  position: absolute;
  width: 100%;
  bottom: 120px;
  text-align: center;
  color: #e1f3f3;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
  pointer-events: none; /* evita clics accidentales en los inactivos */
}

.slide-textos.active {
  opacity: 1;
  animation: fadeInUp 0.8s ease;
  pointer-events: auto;
}



/* --- Main Content (Contenedor principal de secciones) --- */
.main-content {
    background-color: var(--background-color);
}

/* --- Estilos para el título de la sección (GLOBAL) --- */
.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 4rem;
    margin-top: 5rem;
}

.section-title .title-main {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.section-title .separator-icon {
    font-size: 2.5rem;
    color: #ccc; /* Considera usar una variable como --text-color-light o --primary-color */
    vertical-align: middle;
    margin: 0 0.5rem;
}

.section-title .title-sub {
    display: block;
    font-size: 1.6rem;
    color: #777; /* Considera usar --text-color-light */
    font-weight: normal;
    margin-top: 0.5rem;
}

/* --- Sección "Nosotros" (FEATURES) --- */
.container-features {
    padding: 0rem; /* Ya el section-title maneja el padding superior */
    background-color: #f7f3ed; /* Considera usar una variable como --background-color o --bg-light */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
    gap: 2.5rem;
    justify-content: center;
    margin-top: 0rem;
}

.card-feature {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-feature i,
.card-feature .material-symbols-outlined {
    font-size: 2.7rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.feature-content span {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark-color);
}

.feature-content p {
    color: #777; /* Considera usar --text-color-light */
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.5;
}

/* --- Iconos de Google Fonts (Material Symbols) --- */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
}

/* --- Sección Servicios (NUEVO DISEÑO) --- */
.container-services {
    padding: 0rem; /* Ya el section-title maneja el padding superior */
    background-color: #f7f3ed; /* Considera usar una variable como --background-color o --bg-light */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 0rem;
    justify-content: center;
}

.service-card {
    background-color: #ffffff;
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.service-card .icon-wrapper {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 7.5rem;
    height: 7.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-card .icon-wrapper img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1); /* para que la imagen sea blanca como los íconos */
}


.service-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
}

.service-card p {
    font-size: 1.5rem;
    color: #555555; /* Considera usar --text-color-light */
    line-height: 1.6;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

/* --- Sección Productos (Diseño sin Precios ni Descuentos) --- */

/* REGLA PARA EL FILTRO */
.product-item.hidden {
    display: none;
}

/* ESTILOS PARA LOS BOTONES DE FILTRO DE PRODUCTOS */
.filter-category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.filter-button {
    background-color: #f0f0f0;
    color: var(--dark-color);
    border: none;
    padding: 1.4rem 3rem;
    border-radius: 3rem;
    font-size: 1.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.container-products-section {
    padding: 5rem 0;
    background-color: #f7f3ed; /* Sugerencia: Considera usar una variable como --background-color o --bg-light */
}

.container-products {
    display: grid;
    /* Esto crea columnas que se ajustan automáticamente, con un mínimo de 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 0rem;
    justify-content: center; /* Asegura que el contenido se centre en el grid */
    /* Añadido para centrar el grid si no llena todo el ancho */
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-width-container, 1200px); /* Ajusta a tu ancho máximo de contenido */
}

.card-product {
    display: flex;
    flex-direction: column;
    height: auto; /* La altura se ajustará al contenido */
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    overflow: hidden; /* Importante para el border-radius y el efecto de zoom de la imagen */
    transition: transform 0.2s ease-in-out; /* Suave transición al pasar el mouse por la tarjeta */
}

.card-product:hover {
    transform: translateY(-5px); /* Pequeño levantamiento al pasar el mouse */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* Sombra más pronunciada */
}

.card-product .container-img {
    width: 100%;
    height: 180px; /* Altura fija para todas las imágenes, crucial para la uniformidad */
    overflow: hidden; /* Asegura que nada se salga del contenedor de la imagen */
    display: flex; /* Usamos flexbox para centrar la imagen */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    background-color: #f7f7f7; /* Color de fondo visible cuando object-fit: contain no llena todo el espacio */
}

.card-product .container-img img {
    width: 100%; /* La imagen intentará ocupar el 100% del ancho del contenedor */
    height: 100%; /* La imagen intentará ocupar el 100% del alto del contenedor */
    object-fit: contain; /* ¡CAMBIO CLAVE! La imagen se mostrará COMPLETA, sin recortes, ajustándose al contenedor. Podría dejar espacios vacíos (letterbox/pillarbox). */
    display: block; /* Elimina cualquier espacio extra que algunos navegadores puedan añadir por defecto */
    transition: transform 0.3s ease; /* Transición suave para el efecto de zoom */
}

.card-product:hover .container-img img {
    transform: scale(1.05); /* Efecto de zoom sutil al pasar el ratón */
}

.content-card-product.no-price-discount {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón al final y el título/descripción arriba */
    align-items: center; /* Centra horizontalmente el contenido */
    flex-grow: 1; /* Permite que este contenido ocupe el espacio restante en la tarjeta */
    padding: 1.5rem 1rem;
    gap: 0.8rem; /* Espacio entre los elementos internos */
}

.content-card-product h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 0.8rem; /* Espacio debajo del título */
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

/* Estilos para la descripción del producto (ahora con UL LI) */
.product-short-description {
    width: 100%; /* Ocupa todo el ancho disponible */
    font-size: 1.3rem;
    color: var(--text-color-light);
    line-height: 1.6;
    text-align: center; /* Centra el bloque de la descripción */
    margin-bottom: 1.5rem;
    font-weight: 400;
    padding: 0 0.5rem; /* Pequeño padding horizontal para la descripción */
}

/* Estilos para la LISTA (ul) dentro de .product-short-description */
.product-short-description ul {
    list-style: none; /* Quita los puntos de la lista por defecto */
    padding: 0; /* Quita el padding por defecto de la lista */
    margin: 0 auto; /* Centra la lista en sí misma si es más estrecha que el 100% */
    text-align: left; /* Alinea los ítems de la lista a la izquierda */
    max-width: 90%; /* Limita el ancho de la lista para que no se extienda demasiado en pantallas muy anchas */
    display: inline-block; /* Permite centrar la UL si su contenido no ocupa el 100% y text-align: center en el padre */
}

/* Estilos para cada ITEM de la LISTA (li) */
.product-short-description li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 1.25rem; /* ligeramente más grande para mejor legibilidad */
    color: #666; /* Sugerencia: Considera usar var(--text-color-light) para consistencia */
    padding-left: 25px; /* Espacio para el icono */
}

/* Icono o viñeta personalizada para los ítems de la lista (Requiere Font Awesome) */
.product-short-description li::before {
    content: "\f00c"; /* Icono de Font Awesome (checkmark) */
    font-family: "Font Awesome 5 Free"; /* Necesario para que Font Awesome funcione */
    font-weight: 900; /* Necesario para que Font Awesome funcione */
    position: absolute;
    left: 0; /* Alinea el icono al inicio del padding-left del li */
    top: 50%;
    transform: translateY(-50%); /* Centra verticalmente el icono */
    color: var(--success-color); /* Verde para el check (usa la variable) */
    font-size: 1.1rem;
}

/* Estilos botones comprar en las tarjetas */
.buy-button {
    position: relative;
    display: inline-block; /* Para que padding y transform funcionen correctamente */
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    border: none;
    overflow: hidden; /* Necesario para el efecto de brillo */
    z-index: 1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease; /* Transición suave para todos los cambios */
    margin-top: auto; /* Empuja el botón a la parte inferior de la tarjeta, importante con flex-direction: column */
    width: 90%; /* Ocupa casi todo el ancho de la tarjeta */
    max-width: 250px; /* Limita el ancho del botón en tarjetas muy anchas */
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera del botón */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Color del efecto de brillo */
    transform: skewX(-30deg); /* Inclina el efecto */
    transition: all 0.5s ease;
    z-index: -1; /* Asegura que el efecto esté detrás del texto del botón */
}

.buy-button:hover::before {
    left: 100%; /* Mueve el efecto a través del botón */
}

.buy-button:hover {
    background-color: #2980b9; /* Sugerencia: Considera usar una variable o un color derivado de --primary-color */
    transform: translateY(-2px); /* Pequeño levantamiento al pasar el mouse */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.buy-button:active {
    transform: translateY(0); /* Vuelve a la posición original al hacer clic */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Sombra de clic */
}

/* Ocultar elementos no deseados en este tipo de tarjeta de producto */
.card-product .discount,
.card-product .stars,
.card-product .button-group,
.card-product .price {
    display: none !important; /* Asegura que estos elementos no se muestren */
}

/* ---------------------------------------------------- */
/* SECCIÓN DE RESEÑAS (NUEVO ESTILO: SOLO TEXTO Y NOMBRE) */
/* ---------------------------------------------------- */

/* Sección principal de las reseñas */
.container-reviews-section {
    padding: 0rem; /* CORREGIDO: Quité el 'rem*' y puse un valor numérico */
    background-color:#f9f5f0 /* Fondo gris claro */
}

/* Patrón de fondo sutil (Opcional: Puedes quitarlo si prefieres un fondo liso) */
.container-reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Patrón de puntos muy sutil */
    background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4; /* Menos opacidad para que sea muy discreto */
    z-index: -1;
}

/* Título de la sección de reseñas */
.container-reviews-section .section-title {
    margin-bottom: 6rem; /* Más espacio debajo del título */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Más espacio entre los elementos del título */
}

.container-reviews-section .section-title .title-main {
    font-size: 4.5rem; /* Título principal aún más grande y audaz */
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-color); /* Color oscuro para mayor impacto */
}

.container-reviews-section .section-title .separator-icon {
    color: var(--primary-color); /* Usamos el color principal para el icono */
    font-size: 3.5rem; /* Icono de comillas más grande */
    opacity: 0.8;
}

.container-reviews-section .section-title .title-sub {
    font-size: 2rem; /* Subtítulo más prominente */
    color: var(--text-color-light);
    font-weight: 400; /* Menos negrita para un look más suave */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenedor del grid de reseñas */
.reviews-grid {
    display: grid;
    /* 3 columnas fluidas en pantallas grandes */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem; /* Mayor espacio entre las tarjetas */
    justify-content: center;
    align-items: start; /* Alinea al inicio si las alturas son diferentes */
    z-index: 2;
    position: relative;
}

/* Tarjeta individual de reseña */
.review-card {
    background-color: #ffffff;
    border-radius: 1.5rem; /* Bordes ligeramente menos redondeados */
    padding: 4rem; /* Mucho más padding para espacio interior */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); /* Sombra suave y moderna */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left; /* Alinea el texto a la izquierda */
    position: relative;
    border: 1px solid var(--border-color); /* Borde sutil y limpio */
    min-height: 200px; /* Altura mínima para que las tarjetas se vean consistentes */
}

.review-card:hover {
    transform: translateY(-8px); /* Efecto de levante más sutil */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); /* Sombra ligeramente más fuerte al pasar el ratón */
}

/* Pseudo-elemento para la comilla de apertura estilizada */
.review-card::before {
    content: '\201C'; /* Comilla tipográfica de apertura grande */
    font-size: 10rem; /* Muy grande */
    color: var(--primary-color); /* Color de la comilla */
    opacity: 0.1; /* Muy sutil */
    position: absolute;
    top: -1.5rem; /* Posición ajustada */
    left: 1.5rem;
    line-height: 1; /* Evita que la comilla ocupe mucho espacio vertical */
    z-index: 0;
}

/* Texto de la reseña */
.review-text {
    font-size: 1.9rem; /* Tamaño de fuente generoso para el texto */
    color: var(--text-color-dark);
    line-height: 1.7; /* Mayor interlineado para mejor lectura */
    margin-bottom: 2rem; /* Espacio antes del nombre del autor */
    font-style: italic; /* Las reseñas suelen ir en cursiva */
    position: relative; /* Para asegurar que esté sobre el pseudo-elemento */
    z-index: 1;
}

/* Nombre del revisor */
.reviewer-name {
    font-size: 1.8rem;
    font-weight: 600; /* Más negrita para el nombre */
    color: var(--primary-color); /* Color principal para el nombre */
    align-self: flex-end; /* Alinea el nombre a la derecha de la tarjeta */
    margin-top: auto; /* Empuja el nombre hacia abajo, al final de la tarjeta */
    position: relative; /* Para asegurar que esté sobre el pseudo-elemento */
    z-index: 1;
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES para la sección de reseñas (ajustadas) */
/* ---------------------------------------------------- */

@media (max-width: 1200px) {
    .container-reviews-section {
        padding: 6rem 0;
    }
    .container-reviews-section .section-title .title-main {
        font-size: 4rem;
    }
    .container-reviews-section .section-title .separator-icon {
        font-size: 3rem;
    }
    .container-reviews-section .section-title .title-sub {
        font-size: 1.8rem;
    }
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 3.5rem;
    }
    .review-card {
        padding: 3.5rem;
    }
    .review-card::before {
        font-size: 9rem;
        top: -1.2rem;
        left: 1rem;
    }
    .review-text {
        font-size: 1.8rem;
    }
    .reviewer-name {
        font-size: 1.7rem;
    }
}

@media (max-width: 991px) {
    .container-reviews-section {
        padding: 5rem 0;
    }
    .container-reviews-section .section-title {
        margin-bottom: 5rem;
    }
    .container-reviews-section .section-title .title-main {
        font-size: 3.6rem;
    }
    .container-reviews-section .section-title .title-sub {
        font-size: 1.7rem;
    }
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Dos columnas para tablets */
        gap: 3rem;
    }
    .review-card {
        padding: 3rem;
    }
    .review-card::before {
        font-size: 8rem;
        top: -1rem;
        left: 0.8rem;
    }
    .review-text {
        font-size: 1.7rem;
    }
    .reviewer-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container-reviews-section {
        padding: 4rem 0;
    }
    .container-reviews-section .section-title {
        margin-bottom: 4rem;
    }
    .container-reviews-section .section-title .title-main {
        font-size: 3.2rem;
    }
    .container-reviews-section .section-title .separator-icon {
        font-size: 2.8rem;
    }
    .container-reviews-section .section-title .title-sub {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
    .reviews-grid {
        grid-template-columns: 1fr; /* Una columna para móviles */
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    .review-card {
        padding: 3.5rem 2.5rem;
        text-align: center; /* Centra el texto en móviles */
        align-items: center; /* Centra el contenido en móviles */
    }
    .review-card::before {
        font-size: 7rem;
        top: -0.8rem;
        left: 50%; /* Centra la comilla */
        transform: translateX(-50%); /* Ajuste fino para centrar */
        opacity: 0.07;
    }
    .review-text {
        font-size: 1.6rem;
    }
    .reviewer-name {
        font-size: 1.5rem;
        align-self: center; /* Centra el nombre en móviles */
    }
}

@media (max-width: 480px) {
    .container-reviews-section {
        padding: 3rem 0;
    }
    .container-reviews-section .section-title .title-main {
        font-size: 2.8rem;
    }
    .container-reviews-section .section-title .title-sub {
        font-size: 1.4rem;
    }
    .review-card {
        padding: 3rem 2rem;
    }
    .review-card::before {
        font-size: 6rem;
    }
    .review-text {
        font-size: 1.5rem;
    }
    .reviewer-name {
        font-size: 1.4rem;
    }
}

/* ---------------------------------------------------- */
/* SECCIÓN DE CONTACTO
/* ---------------------------------------------------- */
.container-contact-section.alternative-style {
    padding: 0rem; /* Más padding para mayor espacio */
    padding-bottom: 8rem;
    background-color: #f9f5f0;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo sutil (opcional, para darle un toque visual) */
.container-contact-section.alternative-style::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.1" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zM6 5v1H0V0z"/%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none; /* No interfiere con clics */
}


/* Título de la sección (Ajustado para este estilo) */
.container-contact-section.alternative-style .section-title {
    margin-bottom: 7rem;
    color: var(--dark-color); /* Asegura que el título sea visible */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Sombra sutil */
}

.container-contact-section.alternative-style .section-title .separator-icon {
    font-size: 4rem; /* Icono más grande */
    color: var(--primary-color);
    text-shadow: none; /* Quitar sombra si la tiene por defecto */
}

.container-contact-section.alternative-style .section-title .title-main {
    font-size: 4.8rem; /* Título principal un poco más grande */
    font-weight: 800;
}

.container-contact-section.alternative-style .section-title .title-sub {
    font-size: 2.2rem; /* Subtítulo más grande */
    color: var(--text-color-light);
    font-weight: 500;
}


/* Contenedor de Tarjetas */
.contact-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 2 columnas en desktop, 1 en móvil */
    gap: 4rem; /* Espacio entre las tarjetas */
    justify-content: center; /* Centra las tarjetas si hay menos de 2 */
    align-items: stretch; /* Asegura que las tarjetas tengan la misma altura */
    position: relative;
    z-index: 1; /* Para que esté sobre el fondo con patrón */
}

/* Estilos de la Tarjeta Individual */
.contact-card {
    background-color: #ffffff;
    border-radius: 2rem; /* Bordes más redondeados */
    padding: 4rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espacio entre el contenido */
    border-top: 5px solid var(--primary-color); /* Borde superior de color */
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02); /* Efecto hover flotante */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15); /* Sombra más intensa al hover */
}

/* Icono de la Tarjeta */
.card-icon {
    font-size: 6rem; /* Icono grande */
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1; /* Ajusta la línea para que no añada espacio extra */
}

.contact-card h3 {
    font-size: 2.8rem; /* Título de la tarjeta más grande */
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-card p {
    font-size: 1.7rem; /* Párrafo de la tarjeta */
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 3rem; /* Espacio antes de los enlaces */
    flex-grow: 1; /* Permite que el párrafo ocupe espacio para alinear enlaces abajo */
}

/* Contenedor de Enlaces (Teléfonos y Redes) */
.card-links {
    display: flex;
    flex-direction: column; /* Enlaces apilados */
    gap: 1.5rem; /* Espacio entre enlaces */
}

/* Estilo de los Enlaces de Contacto (Teléfonos) */
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido del enlace */
    font-size: 1.9rem; /* Tamaño de los números de teléfono */
    color: var(--dark-color);
    text-decoration: none;
    padding: 1.2rem 2rem;
    border: 2px solid var(--border-color); /* Borde sutil */
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link i {
    margin-right: 1rem;
    color: var(--primary-color); /* Color del icono */
    font-size: 2.2rem;
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.contact-link:hover i {
    color: #ffffff;
}

/* Estilo de los Botones de Redes Sociales */
.social-links {
    flex-direction: row; /* Botones de redes en fila */
    flex-wrap: wrap; /* Envolver si no caben */
    justify-content: center; /* Centrar botones */
    gap: 1.5rem; /* Espacio entre botones */
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem; /* Padding para los botones */
    border-radius: 3rem; /* Botones pill-shaped */
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    margin-right: 1rem;
    font-size: 2.2rem;
}

/* Colores específicos para redes sociales */
.social-btn.facebook-btn {
    background-color: #1877F2; /* Azul de Facebook */
}

.social-btn.facebook-btn:hover {
    background-color: #0c61d0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.twitter-btn {
    background-color: #1DA1F2; /* Azul de Twitter (X) */
}

.social-btn.twitter-btn:hover {
    background-color: #147ac5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Si añades Instagram, por ejemplo: */
/*
.social-btn.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-btn.instagram-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
*/


/* ---------------------------------------------------- */
/* MEDIA QUERIES para la sección de Contacto (Alternative Style) */
/* ---------------------------------------------------- */
@media (max-width: 991px) {
    .container-contact-section.alternative-style {
        padding: 8rem 0;
    }
    .contact-cards-wrapper {
        grid-template-columns: 1fr; /* Una columna para tablets */
        gap: 3rem;
    }
    .contact-card {
        padding: 3.5rem;
        max-width: 500px; /* Limita el ancho en tablets */
        margin: 0 auto; /* Centra las tarjetas */
    }
    .card-icon {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }
    .contact-card h3 {
        font-size: 2.5rem;
    }
    .contact-card p {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    .contact-link {
        font-size: 1.8rem;
    }
    .social-btn {
        font-size: 1.7rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    .container-contact-section.alternative-style {
        padding: 6rem 0;
    }
    .container-contact-section.alternative-style .section-title .title-main {
        font-size: 3.8rem;
    }
    .container-contact-section.alternative-style .section-title .title-sub {
        font-size: 1.8rem;
    }
    .container-contact-section.alternative-style .section-title .separator-icon {
        font-size: 3.5rem;
    }
    .contact-card {
        padding: 3rem 2.5rem;
        border-radius: 1.5rem;
    }
    .card-icon {
        font-size: 4.5rem;
    }
    .contact-card h3 {
        font-size: 2.2rem;
    }
    .contact-card p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .contact-link {
        font-size: 1.7rem;
        padding: 1rem 1.5rem;
    }
    .contact-link i {
        font-size: 2rem;
    }
    .social-btn {
        font-size: 1.6rem;
        padding: 0.8rem 1.8rem;
        border-radius: 2.5rem;
        gap: 1rem;
    }
    .social-btn i {
        font-size: 2rem;
        margin-right: 0.8rem;
    }
}

/* ---------------------------------------------------- */
/* SECCIÓN DE FOOTER MINIMALISTA (SOLO COPYRIGHT Y CRÉDITO) */
/* ---------------------------------------------------- */

.minimal-footer {
    background-color: var(--dark-color); /* Fondo oscuro, puedes ajustar el color si quieres */
    color: #f0f0f0; /* Color de texto claro */
    padding: 2.5rem 0; /* Padding vertical, puedes ajustar */
    text-align: center;
    font-size: 1.4rem;
}

.minimal-footer .container {
    /* El contenedor ya maneja el max-width y padding horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-footer p {
    margin: 0; /* Elimina márgenes por defecto del párrafo */
    line-height: 1.5;
}

.minimal-footer .footer-credit-link {
    color: var(--primary-color); /* Usamos tu color principal para el enlace */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.minimal-footer .footer-credit-link:hover {
    color: #ffffff; /* Blanco al pasar el ratón */
    text-decoration: underline;
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES para el Footer Minimalista */
/* ---------------------------------------------------- */

@media (max-width: 768px) {
    .minimal-footer {
        padding: 2rem 0;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .minimal-footer {
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }
    .minimal-footer p {
        padding: 0 1rem; /* Pequeño padding horizontal para móviles */
    }
}


/* ---------------------------------------------------- */
/* Botón Volver Arriba (Scroll-to-top) - ESTILO COMÚN */
/* ---------------------------------------------------- */

.scroll-to-top-btn {
    display: none; /* Oculto por defecto, JavaScript lo mostrará */
    position: fixed; /* Fijo en la pantalla */
    bottom: 3rem; /* Distancia desde la parte inferior */
    right: 3rem; /* Distancia desde la parte derecha */
    z-index: 999; /* Asegura que esté por encima de otros elementos */
    background-color: var(--primary-color); /* Tu color principal */
    color: #fff;
    border: none;
    cursor: pointer;
    width: 5.5rem; /* Ancho fijo para el botón */
    height: 5.5rem; /* Alto fijo para el botón */
    font-size: 2.4rem; /* Tamaño del icono */
    border-radius: 50%; /* Bordes completamente redondeados para un círculo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Transiciones suaves */

    /* Para centrar la flecha dentro del botón */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo del icono de flecha dentro del botón */
.scroll-to-top-btn i {
    color: #fff; /* Asegurar color blanco para la flecha */
    display: block; /* Asegurar que la flecha sea un bloque */
}

.scroll-to-top-btn:hover {
    background-color: #2980b9; /* Un tono ligeramente más oscuro de tu primary-color al pasar el ratón */
    transform: translateY(-3px); /* Pequeño efecto de elevación al pasar el ratón */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Sombra más intensa al pasar el ratón */
}

/* Clase para mostrar el botón (añadida por JavaScript) */
.scroll-to-top-btn.show {
    display: flex; /* Cambiar a flex para mostrarlo y centrar el contenido */
}


/* Media Queries para ajustar en dispositivos móviles */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 2rem;
        right: 2rem;
        width: 5rem;
        height: 5rem;
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
    }
}