/* ===================================
   Variables y Reset
   =================================== */
:root {
    --primary-color: #2c5f7f;
    --secondary-color: #4a9bbe;
    --accent-color: #3498db;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Utilidades
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===================================
   Botones
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-map {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    margin-top: 15px;
}

.btn-map:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Navegación
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.logo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cita {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-cita:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.9), rgba(74, 155, 190, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero-title {
    font-family: var(--font-secondary);
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-description {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-credentials {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.credential-badge i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.8;
}

.hero-scroll a:hover {
    opacity: 1;
}

/* ===================================
   Sobre Mí
   =================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    pointer-events: none;
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.credentials-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.credential-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.credential-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.credential-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 40px;
}

.credential-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.credential-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   Servicios
   =================================== */
.services {
    padding: 100px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Información de Citas
   =================================== */
.appointment-info {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.info-card {
    text-align: center;
    color: var(--white);
}

.info-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.info-card h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ===================================
   Ubicación
   =================================== */
.location {
    padding: 100px 0;
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 40px;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.info-item a {
    color: var(--secondary-color);
    font-weight: 600;
}

.info-item a:hover {
    color: var(--primary-color);
}

.location-map {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.1), rgba(74, 155, 190, 0.1));
}

.map-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===================================
   Contacto
   =================================== */
.contact {
    padding: 100px 0;
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    min-width: 50px;
}

.contact-method h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-method p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-minsa {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===================================
   WhatsApp Float
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--white);
}

/* ===================================
   Animaciones
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.6rem;
    }
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.9), rgba(74, 155, 190, 0.8));
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===================================
   Servicios Detallados
   =================================== */
.services-detailed {
    padding: 100px 0;
    background: var(--light-color);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 50px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.service-detail.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.service-detail.reverse .service-detail-image {
    order: 2;
}

.service-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.service-icon-large i {
    font-size: 5rem;
    color: var(--white);
}

.service-detail-content h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.service-description {
    line-height: 1.8;
    color: var(--text-light);
    margin: 25px 0;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Galería
   =================================== */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 350px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.placeholder-image {
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.1), rgba(74, 155, 190, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.4;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.95), rgba(74, 155, 190, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.gallery-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-content i {
    font-size: 2.5rem;
    margin-top: 15px;
}

/* ===================================
   Características de la Clínica
   =================================== */
.clinic-features {
    padding: 100px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-box h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Testimonios
   =================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonials-section {
    padding: 100px 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   FAQ
   =================================== */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.faq-intro h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faq-categories {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.faq-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--secondary-color);
}

.faq-category-content {
    display: none;
}

.faq-category-content.active {
    display: block;
}

.faq-item {
    background: var(--light-color);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(74, 155, 190, 0.1);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-contact {
    margin-top: 60px;
}

.faq-contact-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.faq-contact-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.faq-contact-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.faq-contact-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.faq-contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Contacto
   =================================== */
.contact-info-section {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-main-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-description,
.map-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-container {
    margin: 25px 0;
}

.location-details {
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
}

.location-details h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-details ul {
    list-style: none;
}

.location-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.location-details i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.map-overlay {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

/* ===================================
   Citas
   =================================== */
.appointment-process {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
}

.appointment-form-section {
    padding: 100px 0;
    background: var(--light-color);
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.info-box i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-box p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-methods-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.contact-methods-box h3 {
    margin-bottom: 20px;
}

.contact-method-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--white);
    margin-bottom: 10px;
    transition: var(--transition);
}

.contact-method-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.appointment-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.direct-call-section {
    padding: 80px 0;
    background: var(--white);
}

.direct-call-card {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.05), rgba(74, 155, 190, 0.1));
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.call-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse 2s infinite;
}

.call-icon i {
    font-size: 3rem;
    color: var(--white);
}

.direct-call-card h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.direct-call-card > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.call-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.call-note {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   Mejoras de Accesibilidad
   =================================== */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Responsive para nuevas páginas
   =================================== */
@media (max-width: 968px) {
    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .service-detail.reverse .service-detail-image {
        order: 0;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .contact-main-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-category-btn {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons,
    .call-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .service-icon-large {
        width: 150px;
        height: 150px;
    }

    .service-icon-large i {
        font-size: 3.5rem;
    }
}
