/* Dr. Gerardo E. Fong Carrillo - Hoja de Estilos */

:root {
    --primary: #0066B3; /* Azul Hospital Ángeles */
    --primary-light: #5B9BD5; /* Azul Suave */
    --accent: #7B8FA1; /* Gris Acero / Ultrasonido */
    --dark: #121212; /* Negro Ultrasonido */
    --light: #F0F5F9; /* Azul Muy Tenue */
    --white: #FFFFFF;
    --text: #2C3E50; /* Azul Grisáceo Oscuro */
    --shadow: 0 10px 30px rgba(0, 102, 179, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, .dr-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--white); }

/* --- Encabezado y Navegación --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hospital-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.dr-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo .dr-title {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo .dr-name {
    font-size: 1.6rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 5px 15px rgba(142, 122, 181, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 122, 181, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Sección Hero --- */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #fff 0%, #f4f1f8 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

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

.btn:hover {
    transform: scale(1.05);
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* --- Secciones Comunes --- */
section {
    padding: 100px 0;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* --- Sección Sobre Mí --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    filter: brightness(0.9);
}

.highlight-box {
    background: rgba(0, 102, 179, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.highlight-box i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 3px;
}

.highlight-box p {
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text);
}

/* --- Trayectoria --- */
.trajectory-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); }

.card-icon-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.card-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* --- Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.service-item .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-call {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border: none;
    cursor: pointer;
}

.btn-call:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.btn-call i {
    font-size: 1.3rem;
}

/* --- Pie de Página --- */
footer {
    padding: 50px 0;
    background: var(--dark);
    color: var(--white);
}

footer .small { opacity: 0.6; font-size: 0.8rem; margin-top: 10px; }

/* --- Animaciones --- */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.animate-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: 1s ease-out;
}

.show {
    opacity: 1;
    transform: translate(0);
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { justify-content: center; }
    .services-grid, .trajectory-cards {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}
