﻿/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-principal: #1e5ba8;
    --azul-oscuro: #0d3b66;
    --celeste: #7eb3d3;
    --celeste-claro: #a8d5e2;
    --blanco: #ffffff;
    --gris-claro: #f5f9fc;
    --gris-texto: #4a5568;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--gris-texto);
    line-height: 1.6;
    background-color: var(--blanco);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-oscuro);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header y Navegación */
.header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--azul-principal);
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.9rem;
    color: var(--celeste);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gris-texto);
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: var(--azul-principal);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(14, 53, 109, 0.80), rgba(74, 144, 226, 0.60)),
        url("assets/img/") center/cover no-repeat;
    color: var(--blanco);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.hero-content h2 {
    font-size: 3.6rem;
    color: var(--blanco);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    line-height: 1.1;
    text-align: center;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: 0;
    margin-right:0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    opacity: 0.98;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--blanco);
    color: var(--azul-principal);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Secciones Generales */
.section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 50%, #d1e7f5 100%);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--azul-principal);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-principal), var(--celeste));
    border-radius: 2px;
}

/* Sobre Mí Section */
#sobre-mi {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #f0f8ff 100%);
    position: relative;
}

#sobre-mi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(168, 213, 226, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(126, 179, 211, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.text-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-align: justify;
}

.doctor-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.doctor-image:hover {
    transform: scale(1.02);
}

/* Servicios Section */
.services-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

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

.service-card {
    background-color: var(--blanco);
    padding: 2.2rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 91, 168, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Imagen en tarjetas de servicios */
.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--azul-principal);
    font-weight: 700;
    letter-spacing: 0.5px;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mis Estudios Section */
#estudios {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 50%, #d1e7f5 100%);
    position: relative;
}

#estudios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(126, 179, 211, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.studies-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.study-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.study-item::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 50px;
    width: 2px;
    height: calc(100% + 3rem);
    background-color: var(--celeste-claro);
}

.study-item:last-child::before {
    display: none;
}

.study-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-principal);
    text-align: center;
    padding: 1rem;
    background-color: var(--gris-claro);
    border-radius: 10px;
    height: fit-content;
    position: relative;
    z-index: 1;
}

.study-content {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--celeste);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.study-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.study-content p {
    font-size: 1rem;
}

/* Contacto Section */
.contact-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #cce7ff 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(126, 179, 211, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 91, 168, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--azul-principal);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--azul-principal), var(--celeste));
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: var(--gris-claro);
}

.contact-icon {
    font-size: 1.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--azul-principal);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--gris-texto);
    line-height: 1.4;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 2rem;
    text-align: center;
}

.footer p {
    color: var(--blanco);
}

/* Galería */
.gallery-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    background:#0d3b66;
}

.gallery-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 60vh;
    }

    .hero-content {
        padding: 0;
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
        text-align: center;
        margin-left: auto;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        text-align: center;
        margin-left: auto;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .content-wrapper,
    .contact-content,
    .study-item {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 3rem 1.5rem;
    }

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

    .study-item::before {
        display: none;
    }

    .doctor-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .logo h1 {
        font-size: 1.5rem;
    }
}
