/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Poppins:wght@300;400;600&display=swap');

:root {
    --oro: #d4af37;
    --oro-soft: rgba(212, 175, 55, 0.15);
    --nude: #fdfaf9;
    --blanco: #ffffff;
    --oscuro: #1a1a1a;
    --texto-suave: #666;
    --sombra: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* --- 2. ESTILOS GLOBALES --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--nude);
    color: var(--oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Contenedor Principal con diseño asimétrico */
.container {
    background-color: var(--blanco); 
    border-radius: 40px 0px 40px 0px; 
    padding: 60px;
    box-shadow: var(--sombra);
    border-left: 8px solid var(--oro);
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
    backdrop-filter: blur(10px); /* Efecto moderno */
}

/* --- 3. HEADER & NAVEGACIÓN --- */
header {
    background: linear-gradient(to bottom, var(--blanco), var(--nude));
    padding: 80px 20px;
    text-align: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; /* Más grande y llamativo */
    color: var(--oscuro);
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--oro-soft);
}

header p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--oro);
    font-weight: 400;
}

/* Botones de Navegación */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--oscuro);
    background-color: var(--blanco);
    border: 2px solid var(--oro);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

nav ul li a:hover {
    background-color: var(--oro);
    color: var(--blanco) !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* --- 4. COMPONENTES: LOGOS E IMÁGENES --- */
.imagen-destacada {
    border-radius: 50%;
    border: 10px solid var(--blanco);
    box-shadow: var(--sombra);
    transition: transform 0.6s ease;
    background-color: var(--blanco);
    margin-bottom: 20px;
}

.imagen-destacada:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Control de tamaño de imágenes en cards */
.card-img-top {
    width: 100%;
    height: 280px; 
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

/* --- 5. SECCIONES: SOBRE NOSOTROS & SERVICIOS --- */
#sobre-nosotros h2, #servicios h2, #productos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

#sobre-nosotros h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--oro);
    margin: 15px auto;
}

.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: var(--blanco);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12) !important;
}

/* --- 6. PRODUCTOS Y SERVICIOS --- */
.product-card, .service-card {
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    transition: 0.4s;
    background: var(--blanco);
}

.price, .service-overlay {
    font-weight: 700;
    color: var(--oro);
    font-size: 1.3rem;
}

.btn-product, .btn-service {
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
}

/* --- 7. EQUIPO PROFESIONAL (CÍRCULOS) --- */
.img-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    border: 4px solid var(--oro);
    padding: 8px;
    border-radius: 50%;
    transition: 0.5s;
}

.card-pro:hover .img-wrapper {
    transform: rotate(-10deg);
    border-color: var(--oscuro);
}

/* --- 8. FOOTER --- */
footer {
    background-color: var(--blanco);
    padding: 80px 20px;
    border-top: 1px solid var(--oro-soft);
}

footer p:last-child {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Animación WhatsApp */
footer a[href*="wa.me"] img {
    animation: latido 2s infinite;
}

@keyframes latido {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(37, 211, 102, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.4)); }
    100% { transform: scale(1); }
}

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .container { padding: 30px; border-radius: 20px 0; }
    header { padding: 40px 10px; }
    .card-img-top { height: 200px; }
}

/* =================================================RUCTURA DE SECCIONES ================================================= */

/* --- 1. SECCIÓN SERVICIOS (Tarjetas con Precios) --- */
.service-card {
    background: var(--blanco);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--oro-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.service-img {
    position: relative;
    height: 250px; /* Tamaño fijo conservado */
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--oro);
    color: white;
    padding: 10px 25px;
    border-top-left-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: -5px -5px 15px rgba(0,0,0,0.1);
}

/* --- 2. SECCIÓN PRODUCTOS (Estilo Catálogo) --- */
.product-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--oro);
    box-shadow: var(--sombra);
}

.product-img-container {
    height: 220px; /* Tamaño optimizado */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.badge-oro {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--oscuro);
    color: var(--oro);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- 3. EQUIPO DE PROFESIONALES (Círculos Elegantes) --- */
.card-pro {
    text-align: center;
    padding: 40px 20px;
    background: transparent; /* Para que luzca sobre el fondo crema */
}

.img-wrapper {
    width: 200px; /* Tamaño fijo conservado */
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 3px solid var(--oro);
    padding: 8px;
    position: relative;
    background: white;
    transition: 0.5s ease;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%); /* Toque artístico */
    transition: 0.5s;
}

.card-pro:hover .img-wrapper {
    transform: scale(1.05);
    border-color: var(--oscuro);
}

.card-pro:hover img {
    filter: grayscale(0%);
}

.specialty {
    display: block;
    color: var(--oro);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* ================================================= BOTONES LLAMATIVOS ================================================= */

.btn-service, .btn-product {
    display: inline-block;
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: var(--oscuro);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--oscuro);
}

.btn-service:hover, .btn-product:hover {
    background: transparent;
    color: var(--oscuro);
    border-color: var(--oro);
}

/* Estilo específico para la lista de servicios */
.service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.service-list li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--texto-suave);
    border-bottom: 1px dashed var(--oro-soft);
}

.service-list li::before {
    content: "✦";
    color: var(--oro);
    margin-right: 10px;
    font-weight: bold;
}


/* 1. RESET Y FONDO GLOBAL (Cubre toda la web) */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    
    /* CAPA DE COLOR + TU IMAGEN */
    /* El gradiente inicial ayuda a que el texto se lea mejor sobre la foto */
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
                url('img/fondo.png'); 
    
    background-attachment: fixed; /* EFECTO CLAVE: El fondo no se mueve al bajar */
    background-size: cover;      /* Cubre el 100% del ancho y alto */
    background-position: center;  /* Centra la imagen siempre */
    background-repeat: no-repeat;
    
    min-height: 100vh;           /* Fuerza a que el fondo llegue al final */
}

/* 2. HEADER Y NAVEGACIÓN (Transparentes) */
header {
    background: transparent !important;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #1a1a1a;
    text-shadow: 0px 2px 4px rgba(255, 255, 255, 0.8); /* Sombra para resaltar sobre el fondo */
}

/* 3. EL CONTENEDOR (Cristal Traslúcido) */
/* Usamos 'rgba' para que sea blanco pero deje ver el fondo detrás */
.container {
    background-color: rgba(255, 255, 255, 0.85) !important; 
    backdrop-filter: blur(10px); /* Efecto de cristal esmerilado profesional */
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 40px 0px 40px 0px; 
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-left: 10px solid #d4af37; /* El toque de oro */
    margin-top: 30px;
    margin-bottom: 50px;
}

/* 4. TARJETAS (Transparentes y Dinámicas) */
.card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2) !important;
}

/* Asegurar que las imágenes de las tarjetas sean iguales */
.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* 5. FOOTER (Transparente) */
footer {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    padding: 50px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* BANNER FINAL (Tu firma Cristian J.V) */
.copyright-banner {
    background-color: rgba(26, 26, 26, 0.9) !important; /* Negro traslúcido elegante */
    color: white;
    padding: 20px 0;
    text-align: center;
}

.signature span {
    color: #d4af37;
    font-weight: bold;
}


/* Contenedor que une el logo y el nombre */
.logo-y-titulo {
    display: flex;          /* Activa el alineado horizontal */
    align-items: center;    /* Centra el logo verticalmente con el texto */
    justify-content: center; /* Mantiene todo el grupo centrado en la pantalla */
    gap: 20px;               /* Espacio de separación entre logo y letras */
    margin-bottom: 20px;    /* Espacio antes del menú de navegación */
}

/* Ajuste del Logo para que no sea gigante al lado del texto */
.imagen-destacada {
    width: 90px;            /* Tamaño sugerido para que se vea elegante */
    height: 90px;           /* Proporción igual para que sea un círculo perfecto */
    border-radius: 50%;     /* Hace el logo circular */
    border: 3px solid #d4af37; /* Borde dorado para visibilidad total */
    object-fit: contain;    /* Evita que el logo se estire */
    margin: 0;              /* Quitamos márgenes previos */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Sombra para que resalte del fondo */
}

/* Ajuste del título */
header h1 {
    margin: 0;              /* Quitamos el margen para que se alinee perfecto al logo */
    font-size: 2.8rem;      /* Tamaño de letra elegante */
    text-transform: uppercase;
    letter-spacing: 2px;
}


h2.text-center.mb-4 {
    font-family: 'Playfair Display', serif; /* Letra con remates elegantes */
    font-weight: 700;                       /* Negrita marcada */
    font-size: 3rem;                        /* Tamaño imponente */
    color: #1a1a1a;                         /* Negro profundo */
    text-transform: none;                   /* Mantiene mayúsculas y minúsculas */
    letter-spacing: 2px;                    /* Un poco de aire entre letras */
    line-height: 1.2;
    margin-bottom: 50px !important;         /* Espacio con las fotos de abajo */
    position: relative;
}

/* El toque final: una línea dorada sutil debajo del título */
h2.text-center.mb-4::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #d4af37; /* El dorado de tu logo */
    margin: 15px auto 0;
    border-radius: 2px;
}

.product-summary {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    border-left: 3px solid #d4af37; /* Detalle dorado al lado del texto */
    padding-left: 15px;
    margin: 10px 0;
}


/* --- CONFIGURACIÓN PARA COMPUTADORAS (Pantallas grandes) --- */
@media (min-width: 769px) {
    .menu-principal {
        display: none !important; /* Esconde el botón de menú en PC */
    }

    .nav-list {
        display: flex !important; /* Muestra los botones siempre */
        flex-direction: row;      /* Los pone uno al lado del otro */
        justify-content: center;
        gap: 20px;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* --- CONFIGURACIÓN PARA CELULARES Y TABLETS (Pantallas pequeñas) --- */
@media (max-width: 768px) {
    .menu-principal {
        display: flex; /* Aparece el botón de "VER MENÚ" */
        background: #fff;
        border: 2px solid #d4af37;
        padding: 12px 30px;
        border-radius: 50px;
        margin: 20px auto;
        cursor: pointer;
        justify-content: center;
    }

    .nav-list {
        display: flex;
        flex-direction: column; /* Botones uno debajo de otro */
        gap: 10px;
        width: 90%;
        margin: 0 auto;
        
        /* Efecto oculto inicial */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.5s ease;
    }

    /* Clase que activa el JavaScript */
    .nav-list.show {
        max-height: 500px;
        opacity: 1;
        padding-top: 15px;
    }
}