/*
Theme Name: Tijuana Eye Center
Theme URI: https://tijuanaeyecenter.com
Author: Tijuana Eye Center
Description: Tema de landing page para Tijuana Eye Center, Centro Oftalmologico de Alta Especialidad.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tijuana-eye-center
*/

:root{
    --navy-deep:#0B2648;
    --navy:#213871;
    --blue-med:#3A6B95;
    --blue:#008AD1;
    --cyan:#05BAEE;
    --sky:#81CFF4;
    --ice:#BCE3F9;
    --bg-light:#F7FAFD;
    --paper:#FFFFFF;
    --text:#152238;
    --muted:#5C7093;
    --line:#DCE7F2;
    --ring:rgba(5,186,238,0.28);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Inter',sans-serif;
    color:var(--text);
    background:var(--bg-light);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  img{max-width:100%;display:block;}
  a{color:inherit;text-decoration:none;}
  .display{font-family:'Fraunces',serif;}
  .eyebrow{
    font-family:'Inter',sans-serif;
    font-size:0.72rem;
    letter-spacing:0.18em;
    text-transform:uppercase;
    font-weight:600;
    color:var(--cyan);
    display:flex;
    align-items:center;
    gap:0.6rem;
  }
  .eyebrow::before{
    content:"";
    width:22px;height:1px;
    background:var(--cyan);
    display:inline-block;
  }
  .wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
  section{position:relative;}

  /* ===== Focus-ring signature element ===== */
  .ring{
    position:absolute;
    border-radius:50%;
    border:1px solid var(--ring);
    pointer-events:none;
  }
  @keyframes ringPulse{
    0%,100%{transform:scale(1);opacity:0.55;}
    50%{transform:scale(1.045);opacity:0.9;}
  }
  .ring.animated{animation:ringPulse 7s ease-in-out infinite;}

  /* ===== Header ===== */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(255, 255, 255, 0.92);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .header-inner{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 0;
  }
  .logo-badge{
    display:flex;align-items:center;gap:12px;
  }
   .logo-badge img{
    height:100px;
    background:transparent;
    border-radius:0;
    padding:0;
  }
  .logo-badge span{
    font-family:'Fraunces',serif;
    font-size:1.02rem;
    color:#000000;
    letter-spacing:0.01em;
  }
  .nav-cta{
    border:1px solid rgba(0, 0, 0, 0.35);
    color:#010101;
    padding:10px 22px;
    border-radius:999px;
    font-size:0.85rem;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:all .25s ease;
  }
  .nav-cta:hover{
    background:var(--cyan);
    border-color:var(--cyan);
    color:var(--navy-deep);
  }

  /* ===== Hero ===== */
  .hero{
    background:
      radial-gradient(ellipse 900px 500px at 15% -10%, rgba(5,186,238,0.16), transparent 60%),
      linear-gradient(180deg,var(--navy-deep) 0%, #0d2c52 60%, #0f3159 100%);
    color:#fff;
    padding:88px 0 0;
    overflow:hidden;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:56px;
    align-items:center;
  }
  .hero-copy .eyebrow{margin-bottom:22px;}
  .hero h1{
    font-size:clamp(2.3rem, 4.1vw, 3.4rem);
    font-weight:400;
    line-height:1.12;
    letter-spacing:-0.01em;
  }
  .hero h1 em{
    font-style:italic;
    font-weight:500;
    background:linear-gradient(90deg, var(--cyan), var(--sky));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }
  .hero p.lede{
    margin-top:22px;
    font-size:1.03rem;
    line-height:1.7;
    color:rgba(255,255,255,0.72);
    max-width:480px;
  }
  .btn-primary{
    display:inline-flex;align-items:center;gap:10px;
    margin-top:32px;
    background:linear-gradient(100deg, var(--cyan), var(--blue));
    color:#04203a;
    font-weight:600;
    font-size:0.92rem;
    padding:16px 30px;
    border-radius:999px;
    box-shadow:0 14px 30px -10px rgba(5,186,238,0.55);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 18px 36px -8px rgba(5,186,238,0.65);}
  .btn-primary svg{transition:transform .25s ease;}
  .btn-primary:hover svg{transform:translateX(3px);}

  .hero-highlights{
    margin-top:52px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    border-top:1px solid rgba(255,255,255,0.14);
    padding-top:30px;
  }
  .hi-item{display:flex; gap:12px; align-items:flex-start;}
  .hi-item .icon-ring{
    flex:none; width:38px;height:38px;border-radius:50%;
    border:1px solid rgba(5,186,238,0.5);
    display:flex;align-items:center;justify-content:center;
    color:var(--cyan);
  }
  .hi-item h4{font-size:0.88rem;font-weight:600;margin-bottom:4px;line-height:1.4;color:#fff;}
  .hi-item p{font-size:0.8rem;color:rgba(255,255,255,0.6);line-height:1.55;}
  .hi-item a.inline-link{color:var(--sky); font-size:0.78rem; font-weight:500;}

  .hero-photo{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px 0 0;
  }
  .hero-photo .frame{
    position:relative;
    width:100%;
    max-width:420px;
    aspect-ratio:4/5;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 40px 70px -20px rgba(0,0,0,0.55);
  }
  .hero-photo .frame img{width:100%;height:100%;object-fit:cover;}
  .hero-photo .frame::after{
    content:"";position:absolute;inset:0;
    background:linear-gradient(200deg, rgba(11,38,72,0) 55%, rgba(11,38,72,0.55) 100%);
  }
  .hero-photo .ring{border-color:rgba(5,186,238,0.35);}

  /* ===== Stat strip ===== */
  .stat-strip{
    background:#0A2140;
    padding:30px 0;
    border-top:1px solid rgba(255,255,255,0.08);
  }
  .stat-strip .wrap{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
  }
  .stat{
    display:flex;align-items:center;gap:14px;
    color:#fff;
  }
  .stat .num{
    font-family:'Fraunces',serif;
    font-size:1.7rem;
    font-weight:500;
    color:var(--cyan);
    line-height:1;
  }
  .stat .label{font-size:0.78rem;color:rgba(255,255,255,0.62); line-height:1.4; margin-top:2px;}
  .stat .flag{font-size:1.4rem;}

  /* ===== Section header (shared) ===== */
  .section-head{
    text-align:center;
    max-width:640px;
    margin:0 auto 52px;
  }
  .section-head h2{
    font-size:clamp(1.8rem,2.6vw,2.35rem);
    font-weight:400;
    margin-top:16px;
    color:var(--navy-deep);
    line-height:1.25;
  }
  .section-head .eyebrow{justify-content:center;}
  .section-head .eyebrow::before{display:none;}

  /* ===== Specialties ===== */
  .specialties{padding:110px 0 90px;}
  .spec-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
  }
  .spec-card{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    padding:34px 30px;
    position:relative;
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .spec-card:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 40px -18px rgba(33,56,113,0.22);
    border-color:transparent;
  }
  .spec-card .ordinal{
    position:absolute; top:28px; right:30px;
    font-family:'Fraunces',serif;
    font-size:2.1rem;
    color:var(--ice);
    font-weight:500;
    line-height:1;
  }
  .spec-icon{
    width:52px;height:52px;
    border-radius:14px;
    background:linear-gradient(135deg, var(--ice), #ffffff);
    display:flex;align-items:center;justify-content:center;
    color:var(--blue);
    margin-bottom:22px;
  }
  .spec-card h3{
    font-family:'Fraunces',serif;
    font-size:1.12rem;
    font-weight:500;
    color:var(--navy-deep);
    margin-bottom:6px;
    max-width:85%;
  }
  .spec-card .tagline{
    font-size:0.86rem;
    font-weight:600;
    color:var(--blue-med);
    margin-bottom:12px;
  }
  .spec-card p{
    font-size:0.89rem;
    line-height:1.68;
    color:var(--muted);
    margin-bottom:18px;
  }
  .spec-card .cta-link{
    font-size:0.82rem;
    font-weight:600;
    color:var(--blue);
    display:inline-flex;align-items:center;gap:6px;
  }
  .spec-card .cta-link svg{transition:transform .25s ease;}
  .spec-card:hover .cta-link svg{transform:translateX(4px);}

  /* ===== Why choose ===== */
  .why{
    background:linear-gradient(180deg, #EEF6FC, var(--bg-light));
    padding:90px 0;
  }
  .why-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
  }
  .why-item{
    text-align:center;
    padding:22px 14px;
    position:relative;
  }
  .why-item:not(:last-child)::after{
    content:"";
    position:absolute; right:0; top:20%; bottom:20%;
    width:1px; background:var(--line);
  }
  .why-item .why-icon{
    width:56px;height:56px;
    border-radius:50%;
    border:1px solid var(--ice);
    display:flex;align-items:center;justify-content:center;
    color:var(--blue);
    margin:0 auto 16px;
  }
  .why-item p{font-size:0.85rem; color:var(--muted); line-height:1.55; max-width:180px; margin:0 auto;}

  /* ===== Contact ===== */
  .contact{padding:110px 0 120px;}
  .contact-grid{
    display:block;
    max-width:700px;
    margin:0 auto;
}
  .contact-copy h2{
    font-size:clamp(1.9rem,2.8vw,2.5rem);
    font-weight:400;
    line-height:1.24;
    color:var(--navy-deep);
    margin:18px 0 20px;
  }
  .contact-copy p{
    font-size:0.98rem;
    line-height:1.75;
    color:var(--muted);
    max-width:440px;
    margin-bottom:30px;
  }
  .btn-whatsapp{
    display:inline-flex;align-items:center;gap:10px;
    background:var(--navy-deep);
    color:#fff;
    font-weight:600;
    font-size:0.9rem;
    padding:15px 26px;
    border-radius:999px;
    transition:background .25s ease, transform .25s ease;
  }
  .btn-whatsapp:hover{background:var(--navy); transform:translateY(-2px);}

  .form-card{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:24px;
    padding:38px;
    box-shadow:0 30px 60px -30px rgba(33,56,113,0.25);
  }
  .form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
  .field label{
    font-size:0.72rem; font-weight:600; letter-spacing:0.04em;
    text-transform:uppercase; color:var(--muted);
    display:block; margin-bottom:8px;
  }
  .field input, .field select{
    width:100%;
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    font-family:'Inter',sans-serif;
    font-size:0.9rem;
    color:var(--text);
    background:#fbfdff;
    transition:border-color .2s ease;
  }
  .field input:focus, .field select:focus{
    outline:none;
    border-color:var(--cyan);
    box-shadow:0 0 0 3px rgba(5,186,238,0.15);
  }
  .form-card .field{margin-bottom:16px;}
  .submit-btn{
    width:100%;
    margin-top:6px;
    background:linear-gradient(100deg, var(--navy), var(--navy-deep));
    color:#fff;
    font-weight:600;
    font-size:0.92rem;
    padding:15px;
    border-radius:12px;
    border:none;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:8px;
    transition:opacity .2s ease;
  }
  .submit-btn:hover{opacity:0.92;}

  /* ===== Footer ===== */
  footer{
    background:var(--navy-deep);
    color:rgba(255,255,255,0.75);
    padding:50px 0 28px;
  }
  .footer-grid{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:30px;
    padding-bottom:32px;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .footer-brand{display:flex; align-items:center; gap:12px;}
  .footer-brand img{height:100px;}
  .footer-brand div p{font-size:0.8rem; color:rgba(255,255,255,0.5); margin-top:2px;}
  .footer-loc{font-size:0.85rem; display:flex; align-items:center; gap:8px; color:rgba(255,255,255,0.7);}
  .footer-social{display:flex; gap:14px;}
  .footer-social a{
    width:36px;height:36px;border-radius:50%;
    border:1px solid rgba(255,255,255,0.2);
    display:flex;align-items:center;justify-content:center;
    transition:background .2s ease, border-color .2s ease;
  }
  .footer-social a:hover{background:var(--cyan); border-color:var(--cyan); color:var(--navy-deep);}
  .footer-bottom{
    padding-top:22px;
    font-size:0.76rem;
    color:rgba(255,255,255,0.4);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  }

  /* ===== Reveal on scroll ===== */
  .reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    .ring.animated{animation:none;}
    .reveal{opacity:1; transform:none; transition:none;}
  }

  /* ===== Responsive: tablet (≤900px) ===== */
  @media (max-width:900px){
    .wrap{padding:0 24px;}
    .hero-grid{grid-template-columns:1fr; gap:40px;}
    .hero-photo{order:-1; padding-top:0;}
    .hero-photo .frame{max-width:340px; margin:0 auto;}
    .hero p.lede{max-width:100%;}
    .hero-highlights{grid-template-columns:1fr 1fr; gap:22px 28px;}
    .stat-strip .wrap{grid-template-columns:repeat(2,1fr); row-gap:22px;}
    .spec-grid{grid-template-columns:repeat(2,1fr);}
    .why-grid{grid-template-columns:repeat(2,1fr); gap:0;}
    .why-item:nth-child(2n)::after{display:none;}
    .why-item{padding:22px 10px 30px;}
    .why-item:not(:last-child)::after{top:auto; bottom:0; left:10%; right:10%; height:1px; width:auto; bottom:0;}
    .contact-grid{grid-template-columns:1fr; gap:44px;}
    .contact-copy p{max-width:100%;}
  }

  /* ===== Responsive: mobile (≤600px) ===== */
  @media (max-width:600px){
    .wrap{padding:0 20px;}
    .header-inner{padding:12px 0;}
    .logo-badge img{height:56px;}
    .logo-badge span{
      display:block;
      font-size:0.82rem;
      line-height:1.15;
      white-space:nowrap;
    }
    .nav-cta{padding:9px 16px; font-size:0.78rem;}

    .hero{padding:36px 0 0;}
    .hero-grid{gap:32px;}
    .hero h1{font-size:clamp(1.9rem, 8vw, 2.6rem);}
    .hero p.lede{font-size:0.95rem; margin-top:18px;}
    .btn-primary{width:100%; justify-content:center; margin-top:26px; padding:15px 24px;}
    .hero-photo .frame{max-width:280px;}
    .hero-highlights{grid-template-columns:1fr; gap:20px; margin-top:38px; padding-top:24px;}

    .stat-strip{padding:24px 0;}
    .stat-strip .wrap{grid-template-columns:1fr 1fr; gap:22px 16px;}
    .stat .num{font-size:1.4rem;}
    .stat .label{font-size:0.72rem;}

    .specialties{padding:70px 0 60px;}
    .section-head{margin:0 auto 36px;}
    .spec-grid{grid-template-columns:1fr; gap:20px;}
    .spec-card{padding:28px 24px;}
    .spec-card h3{max-width:100%;}

    .why{padding:60px 0;}
    .why-grid{grid-template-columns:1fr; gap:0;}
    .why-item{padding:20px 10px;}
    .why-item:not(:last-child)::after{
      right:20%; left:20%; bottom:0; top:auto; width:auto; height:1px;
    }

    .contact{padding:70px 0 80px;}
    .contact-grid{grid-template-columns:1fr; gap:36px;}
    .contact-copy h2{font-size:clamp(1.6rem,7vw,2rem);}
    .btn-whatsapp{width:100%; justify-content:center;}
    .form-card{padding:26px 22px;}
    .form-row{grid-template-columns:1fr;}
    .field input, .field select{font-size:16px;}

    .footer-grid{flex-direction:column; align-items:flex-start;}
    .footer-brand img{height:64px;}
    .footer-loc{align-items:flex-start;}
    .footer-bottom{flex-direction:column; gap:8px;}
  }

  /* ===== Responsive: small phones (≤380px) ===== */
  @media (max-width:380px){
    .wrap{padding:0 16px;}
    .logo-badge span{display:none;}
    .hero h1{font-size:1.8rem;}
    .hero-photo .frame{max-width:100%;}
    .stat-strip .wrap{grid-template-columns:1fr;}
  }

/* ===== Ajustes para WordPress ===== */
.admin-bar header{top:32px;}
@media (max-width:782px){.admin-bar header{top:46px;}}
html{margin-top:0;}
