/* Fernanda Almánzar - Branding Médico Premium - Estética Mármol Glassmorphism */

/* Variables de color y efectos */
:root {
    /* Colores principales */
    --color-primary: #D4A24E;
    --color-primary-light: #F4D03F;
    --color-primary-dark: #B8862B;
    
    /* Colores de texto */
    --color-text-primary: #1E293B;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;
    --color-text-white: #FFFFFF;
    
    /* Colores de fondo */
    --color-bg-primary: #0F172A;
    --color-bg-secondary: #1E293B;
    --color-bg-tertiary: #334155;
    --color-bg-card: #475569;
    
    /* Efectos glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-bg-medium: rgba(255, 255, 255, 0.15);
    --glass-bg-strong: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    --glass-blur-light: blur(10px);
    --glass-blur-strong: blur(25px);
    
    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
    --shadow-accent: 0 4px 20px rgba(212, 162, 78, 0.3);
    --shadow-accent-strong: 0 8px 30px rgba(212, 162, 78, 0.4);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-dark) 100%);
    --gradient-glass: linear-gradient(135deg, var(--glass-bg-light) 0%, var(--glass-bg-medium) 100%);
    --gradient-marble: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 25%, rgba(226, 232, 240, 0.95) 50%, rgba(241, 245, 249, 0.9) 75%, rgba(248, 250, 252, 0.95) 100%);
}

/* Fuentes y configuración base */
body {
    font-family: 'Inter', sans-serif;
    /* Marble luxury background */
    background: 
        var(--gradient-marble),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0.9 0 0 0 0 0.9 0 0 0 0 0.9 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.4"/></svg>'),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 162, 78, 0.03) 2px, rgba(212, 162, 78, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(184, 134, 43, 0.02) 3px, rgba(184, 134, 43, 0.02) 6px);
    background-size: 100% 100%, 800px 800px, 50px 50px, 30px 30px;
    background-attachment: fixed;
    /* animation: marbleShift 20s ease infinite; */
    color: var(--color-text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}



.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Hero Section Responsivo */
.hero-section-responsive {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('src/hero1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section-responsive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(212, 162, 78, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(184, 134, 43, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - 4rem);
}

.hero-text-content {
    max-width: 600px;
    margin: 0;
    text-align: left;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    justify-content: center;
}

/* Tipografía - Mármol */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3rem; /* 48px */
    line-height: 1.1;
    color: var(--color-text-primary);
    text-shadow: var(--shadow-sm);
}

.section-subtitle {
    font-weight: 500;
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-secondary);
}

/* Color de acento - Dorado sobre mármol */
.accent-color {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-accent);
}

/* Tarjetas y elementos de interfaz - Luxury Glassmorphism */
.slate-card {
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 var(--glass-border);

    position: relative;
    overflow: visible;
    width: 300px;
    height: 450px;
}

.slate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 162, 78, 0.1), transparent);

}

.slate-card:hover {
    background: rgba(51, 65, 85, 0.5);
    /* transform: translateY(-8px) scale(1.02); */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 162, 78, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.slate-card:hover::before {
    left: 100%;
}

/* Carousel Styles */
.carousel-container {
    touch-action: pan-y;
}

.carousel-track {
    will-change: transform;
}

.carousel-slide {
    min-height: 0;
}

.carousel-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.carousel-indicator.active {
    background-color: #d4a24e !important;
    opacity: 1;
}

.carousel-indicator:hover {
    opacity: 0.8;
}

/* Glassmorphism Cards - Mármol */
.glass-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 162, 78, 0.03) 2px, rgba(212, 162, 78, 0.03) 4px);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 162, 78, 0.2);
    border-radius: 1.5rem; /* 24px */
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(212, 162, 78, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(212, 162, 78, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(184, 134, 43, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 70px -12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(212, 162, 78, 0.2),
        0 0 40px rgba(212, 162, 78, 0.15);
    border-color: rgba(212, 162, 78, 0.4);
}

/* Header Styles - Glassmorphism */
.header-style {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(248, 250, 252, 0.12) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;

    overflow: hidden;
}

.header-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    pointer-events: none;
}

.header-style nav {
    position: relative;
    z-index: 1;
}

.header-style:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(248, 250, 252, 0.2) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

/* Formularios Premium - Mármol */
.form-input {
    background: 
        var(--gradient-marble),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(212, 162, 78, 0.02) 1px, rgba(212, 162, 78, 0.02) 2px) !important;
    backdrop-filter: var(--glass-blur-light) !important;
    -webkit-backdrop-filter: var(--glass-blur-light) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--color-text-primary) !important;
    border-radius: 1rem !important;
    box-shadow: 
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(212, 162, 78, 0.05) !important;

    letter-spacing: 0.3px;
}

.form-input::placeholder {
    color: var(--color-text-muted) !important;
    font-weight: 300;
}

.form-input:focus {
    border-color: rgba(212, 162, 78, 0.6) !important;
    background: 
        var(--gradient-marble),
        repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(212, 162, 78, 0.03) 1px, rgba(212, 162, 78, 0.03) 2px) !important;
    box-shadow: 
        var(--shadow-md),
        0 0 0 2px rgba(212, 162, 78, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(212, 162, 78, 0.1) !important;
    --tw-ring-color: rgba(212, 162, 78, 0.3) !important;

}

/* Botones Premium - Mármol */
.btn-primary {
    background: 
        var(--gradient-primary),
        repeating-linear-gradient(45deg, transparent, transparent 1px, var(--glass-bg-light) 1px, var(--glass-bg-light) 2px);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--shadow-accent),
        inset 0 1px 0 var(--glass-bg-strong),
        inset 0 -1px 0 var(--color-primary-dark);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {

    box-shadow: 
        0 20px 40px rgba(212, 162, 78, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(184, 134, 43, 0.3),
        0 0 30px rgba(212, 162, 78, 0.2);
    border-color: rgba(212, 162, 78, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: 
        var(--gradient-glass),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 162, 78, 0.03) 2px, rgba(212, 162, 78, 0.03) 4px);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 var(--glass-bg-strong),
        inset 0 -1px 0 var(--glass-border);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 162, 78, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 162, 78, 0.05) 2px, rgba(212, 162, 78, 0.05) 4px);
    border-color: rgba(212, 162, 78, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(212, 162, 78, 0.2),
        0 0 25px rgba(212, 162, 78, 0.1);
}

.btn-secondary:hover::before {
    left: 100%;
}

/* Iconos - Luxury Design */
.icon-box {
    background: linear-gradient(135deg, rgba(212, 162, 78, 0.2), rgba(51, 65, 85, 0.4));
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    color: var(--color-primary);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 var(--glass-bg-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 162, 78, 0.2), transparent);
    transition: left 0.6s ease;
}

.icon-box:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 var(--glass-bg-medium);
}

.icon-box:hover::before {
    left: 100%;
}

/* Efectos de lujo adicionales removidos - ahora usando hero-section-responsive */

/* Mejoras tipográficas consolidadas */
.section-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #000000;
}

h3.text-white {
    color: #000000 !important;
}



/* Iconos Premium - Mármol */
.icon-luxury {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(212, 162, 78, 0.4));

    position: relative;
}

.icon-luxury::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        radial-gradient(circle, var(--glass-bg-medium) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;

}

.icon-luxury:hover {

    filter: drop-shadow(0 6px 15px var(--shadow-accent));
}

.icon-luxury:hover::before {
    opacity: 1;
}

/* Elementos decorativos - Mármol */
.decorative-element {
    background: 
        radial-gradient(circle, rgba(212, 162, 78, 0.08) 0%, rgba(184, 134, 43, 0.04) 50%, transparent 100%),
        repeating-conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.02) 30deg, transparent 60deg);
    border-radius: 50%;
    filter: blur(30px);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}



/* Efectos de partículas - Mármol */
.particle-effect {
    position: absolute;
    width: 3px;
    height: 3px;
    background: 
        radial-gradient(circle, rgba(212, 162, 78, 0.8) 0%, rgba(184, 134, 43, 0.4) 70%, transparent 100%);
    border-radius: 50%;

    box-shadow: 0 0 6px rgba(212, 162, 78, 0.3);
}



/* Desktop form improvements */
@media (min-width: 769px) {
    .contact-form-container {
        max-width: 70rem !important; /* Wider form for better desktop layout */
        padding: 3rem !important;
    }
    
    .contact-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin: 0;
    }
    
    .contact-form-grid > div {
        margin-bottom: 0;
    }
    
    .contact-form-full {
        grid-column: 1 / -1;
    }
    
    .contact-form-button {
        grid-column: 1 / -1;
        justify-self: center;
        width: auto !important;
        min-width: 200px;
        padding: 1rem 2.5rem;
    }
    
    /* Override space-y for grid layout */
    .contact-form-grid .space-y-6 > * + * {
        margin-top: 0;
    }
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-section-responsive {
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-content-wrapper {
        padding: 1.5rem;
        min-height: calc(100vh - 3rem);
    }
    
    .hero-text-content {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .slate-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section-responsive {
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-content-wrapper {
        padding: 1rem;
        min-height: calc(100vh - 2rem);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .slate-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 380px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section-responsive {
        min-height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: 0.75rem;
        min-height: calc(100vh - 1.5rem);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
        margin-bottom: 1.25rem;
    }
    
    .slate-card {
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 350px;
        padding: 1.25rem;
    }
}