/* ==========================================================================
   Dr. Javier Del Vecchio - Professional Website
   Modern, clean design for medical professional
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748;
    background: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0072BC;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005a96;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header .social {
    background: #1a202c;
    padding: 8px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
}

.site-header .social li {
    display: inline-block;
    margin-left: 10px;
}

.site-header .social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.2s ease;
}

.site-header .social li a:hover {
    background: #0072BC;
    transform: scale(1.05);
}

.site-header .social li img {
    width: 26px;
    height: 26px;
    border-radius: 0;
    filter: brightness(0) invert(1);
}

.site-header .sub {
    position: relative;
    padding: 0 24px !important;
    margin-top: 0 !important;
    min-height: 110px;
}

.site-header .logo {
    width: auto;
    float: none;
}

.site-header .logo img {
    height: 100px;
    width: auto;
}

/* ---------- Navigation ---------- */
.main-navigation {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-navigation .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.main-navigation .menu > li {
    position: relative;
    margin: 0;
}

.main-navigation .menu > li > a {
    display: block;
    padding: 24px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5568;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current_page_item > a {
    color: #0072BC;
}

/* Dropdown */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 100;
}

.main-navigation .menu > li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu li a:hover,
.main-navigation .sub-menu li.current-menu-item a,
.main-navigation .sub-menu li.current_page_item a {
    color: #0072BC;
    background: #f7fafc;
}

/* Hamburger menu */
.menu-mobile {
    display: none;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-mobile span {
    display: block;
    width: 28px;
    height: 2px;
    background: #2d3748;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-mobile span:last-child {
    margin-bottom: 0;
}

.menu-mobile.on span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-mobile.on span:nth-child(2) {
    opacity: 0;
}

.menu-mobile.on span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Content offset for fixed header */
.site-content {
    padding-top: 160px; /* social bar + nav */
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.hero.small-hero {
    height: 200px;
    margin-bottom: 0;
}

.hero-image,
.hero-slide .slick-slide {
    position: relative;
    height: 100%;
}

.hero .background-wrapper,
.hero-slide .background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .background-image,
.hero-slide .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .background-wrapper::after,
.hero-slide .hero-image .background-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 114, 188, 0.7), rgba(26, 32, 44, 0.6));
}

.hero .text-hero,
.hero-slide .text-hero {
    position: relative;
    z-index: 2;
    padding: 0 10%;
}

.hero .text-hero h1,
.hero-slide .text-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero .text-hero p,
.hero-slide .text-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* ---------- Sections / Padding ---------- */
.padding-x {
    padding-left: 24px;
    padding-right: 24px;
}

.padding-y {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ---------- Doctor Section (Homepage) ---------- */
section.doctor {
    padding: 80px 0;
    background: #fff;
}

section.doctor img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

section.doctor h2 {
    color: #0072BC;
    font-size: 2rem;
    margin-bottom: 1rem;
}

section.doctor ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

section.doctor ul li a {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #0072BC;
    color: #fff;
}

section.doctor ul li a:hover {
    background: #005a96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 114, 188, 0.3);
}

/* ---------- Reconocimientos (Homepage) ---------- */
section.reconocimientos {
    padding: 80px 0;
    background-size: cover !important;
    color: #fff;
}

section.reconocimientos h2 {
    color: #fff;
    font-size: 2rem;
}

section.reconocimientos p {
    color: rgba(255,255,255,0.9);
}

section.reconocimientos img {
    border-radius: 8px;
}

/* ---------- Contacto CTA (Homepage) ---------- */
section.contacto {
    padding: 60px 0;
    background-size: cover !important;
    color: #fff;
    text-align: center;
}

section.contacto h1 {
    color: #fff;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

section.contacto p {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    line-height: 1.8;
}

section.contacto hr {
    border: none;
    height: 3px;
    width: 60px;
    background: #fff;
    margin: 20px auto;
    opacity: 0.6;
}

section.contacto em {
    font-style: normal;
    font-size: 1.6rem;
    font-weight: 700;
}

section.contacto strong u {
    font-size: 1.15rem;
}

/* ---------- Contenido (inner pages) ---------- */
section.contenido,
section.cirugias,
section.informacion,
section.noticias {
    padding: 60px 0 80px;
}

section.contenido h2,
section.cirugias h2,
section.informacion h2,
section.noticias h2 {
    color: #0072BC;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
}

section.contenido img,
section.cirugias img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

section.contenido ul,
section.cirugias ul:not(.listado) {
    padding-left: 0;
    list-style: none;
}

section.contenido ul li,
section.cirugias ul:not(.listado) li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #4a5568;
}

section.contenido ul li::before,
section.cirugias ul:not(.listado) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0072BC;
}

section.cirugias hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
}

/* ---------- Research / Publications (PDFs) ---------- */
.titulo-listado {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0072BC !important;
    letter-spacing: 0.08em !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: block;
    text-align: left !important;
}

ul.listado {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

ul.listado li {
    position: relative;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 16px 16px 52px;
    transition: all 0.2s ease;
}

ul.listado li:hover {
    background: #ebf4ff;
    border-color: #0072BC;
    box-shadow: 0 2px 8px rgba(0, 114, 188, 0.1);
    transform: translateX(2px);
}

ul.listado li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 24px;
    height: 24px;
    background: #0072BC;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
}

ul.listado li a {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2d3748;
    display: block;
}

ul.listado li:hover a {
    color: #0072BC;
}

/* ---------- Patient Info (PDF Downloads) ---------- */
section.informacion ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

section.informacion ul ul {
    padding: 0;
}

section.informacion ul li {
    list-style: none;
}

section.informacion ul ul li {
    margin-bottom: 12px;
}

section.informacion ul ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #2d3748;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

section.informacion ul ul li a::before {
    content: '';
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #0072BC;
    border-radius: 8px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center / 22px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center / 22px;
}

section.informacion ul ul li a:hover {
    background: #0072BC;
    border-color: #0072BC;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.25);
}

section.informacion ul ul li a:hover::before {
    background: #fff;
}

section.informacion ul ul li a::after {
    content: 'PDF';
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 114, 188, 0.1);
    color: #0072BC;
}

section.informacion ul ul li a:hover::after {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---------- Noticias ---------- */
section.noticias .titulo-noticia {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

section.noticias img {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ---------- Contact Page ---------- */
section.contacto-container {
    padding: 60px 0;
}

section.contacto-container h2 {
    color: #0072BC;
    font-size: 2rem;
}

/* Contact Form */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #2d3748;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #0072BC;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
}

.wpcf7 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #0072BC;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #005a96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 114, 188, 0.3);
}

/* Contact Data */
section.contacto-datos {
    padding-bottom: 40px;
}

section.contacto-datos .datos {
    padding: 40px;
    color: #fff;
    border-radius: 10px 10px 0 0;
    background-size: cover !important;
}

section.contacto-datos .datos p {
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
}

section.contacto-datos iframe {
    border-radius: 0 0 10px 10px;
}

/* ---------- Footer ---------- */
#colophon {
    background: #1a202c;
    color: #a0aec0;
}

.footer-content {
    padding: 50px 0;
}

.footer-logo img {
    height: auto;
    width: 100%;
    max-width: 100%;
    opacity: 1;
}

.footer-contact p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #fff;
    font-weight: 600;
}

.footer-contact a:hover {
    color: #0072BC;
}

.footer-social .social {
    background: transparent;
    padding: 0;
    justify-content: flex-end;
    margin: 0;
}

.footer-social .social li {
    margin-left: 0;
    margin-right: 10px;
}

.footer-social .social li a {
    width: 75px;
    height: 75px;
    background: rgba(255,255,255,0.12);
    transition: all 0.2s ease;
}

.footer-social .social li a:hover {
    background: #0072BC;
    transform: scale(1.05);
}

.footer-social .social li img {
    width: 39px;
    height: 39px;
    filter: brightness(0) invert(1);
}

.legal {
    background: #171923;
    color: #718096;
    font-size: 0.8rem;
    padding: 16px 24px;
    text-align: center;
}

.legal a {
    color: #a0aec0;
}

.legal a:hover {
    color: #0072BC;
}

@media (max-width: 767px) {
    .footer-content {
        padding: 30px 0;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-social .social {
        justify-content: center;
    }

    .text-md-right {
        text-align: center !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .menu-mobile {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        border-top: 1px solid #e2e8f0;
    }

    .main-navigation.on {
        display: block;
    }

    .main-navigation .menu {
        flex-direction: column;
        padding: 8px 0;
    }

    .main-navigation .menu > li > a {
        padding: 14px 24px;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f7fafc;
        display: block;
    }

    .main-navigation .sub-menu li a {
        padding-left: 40px;
    }

    .hero {
        height: 250px;
    }

    .hero.small-hero {
        height: 120px;
    }

    .hero .text-hero h1,
    .hero-slide .text-hero h1 {
        font-size: 1.8rem;
    }

    .site-content {
        padding-top: 130px;
    }

    .site-header .logo img {
        height: 75px;
    }

    .padding-y {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    section.doctor,
    section.contenido,
    section.cirugias,
    section.informacion,
    section.noticias,
    section.contacto-container {
        padding: 40px 0;
    }

    section.doctor img {
        margin-bottom: 24px;
    }

    .site-header .logo img {
        height: 36px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: 200px;
    }

    .hero.small-hero {
        height: 100px;
        min-height: auto;
    }

    .hero .text-hero h1,
    .hero-slide .text-hero h1 {
        font-size: 1.3rem;
        padding: 0 5%;
    }

    .hero .text-hero p,
    .hero-slide .text-hero p {
        font-size: 0.95rem;
    }

    .hero-slide .slick-list,
    .hero-slide .slick-track,
    .hero-slide .slick-slide {
        height: auto;
        min-height: 200px;
    }

    .hero-image {
        padding: 30px 0;
    }

    section.doctor ul {
        flex-direction: column;
    }

    section.doctor ul li a {
        display: block;
        text-align: center;
    }

    ul.listado {
        grid-template-columns: 1fr;
    }

    ul.listado li {
        padding: 14px 14px 14px 46px;
    }

    ul.listado li::before {
        left: 12px;
        top: 16px;
        width: 20px;
        height: 20px;
    }

    section.informacion ul ul li a {
        padding: 16px 18px;
        font-size: 0.85rem;
    }

    .site-header .social {
        padding: 4px 16px;
    }

    .site-header .sub {
        padding: 0 16px !important;
    }

    .padding-x {
        padding-left: 16px;
        padding-right: 16px;
    }

    section.contacto-datos .datos {
        padding: 24px;
    }
}

/* ---------- Slick Overrides ---------- */
.slick-slide {
    outline: none;
}

.hero-slide .slick-list,
.hero-slide .slick-track,
.hero-slide .slick-slide {
    height: 300px;
}

@media (max-width: 991px) {
    .hero-slide .slick-list,
    .hero-slide .slick-track,
    .hero-slide .slick-slide {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .hero-slide .slick-list,
    .hero-slide .slick-track,
    .hero-slide .slick-slide {
        height: 200px;
    }
}
