/*
Theme Name: Jota Blue
Theme URI: https://jotablue.com
Author: Jota Blue SRL
Author URI: https://jotablue.com
Description: Tema a medida para Jota Blue - Larimar & Silver. Landing de una pagina con slideshow, secciones de marca, video y formulario de contacto que envia los mensajes al correo empresarial (configurable en Ajustes > Generales).
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jota-blue
*/


    /* ─── Variables ──────────────────────────────────── */
    :root {
      --black:  #050505;
      --dark:   #111111;
      --text:   #222222;
      --muted:  #555555;
      --light:  #EAEAEA;
      --cream:  #FAFAFA;
      --white:  #FFFFFF;
      --blue:   #4A90E2;
      --blue2:  #61A8BB;
      --larimar-dark: #0E323D;   /* larimar oscuro para la navbar */
      --sans:   'Maiandra GD', 'Maiandra', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
      --serif:  'Playfair Display', Georgia, serif;
    }

    /* ─── Reset ──────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    body { font-family: var(--sans); background: var(--black); color: var(--text); line-height: 1.75; overflow-x: hidden; width: 100%; max-width: 100%; }
    img  { display: block; max-width: 100%; height: auto; }
    a    { text-decoration: none; color: inherit; transition: color .3s; }
    ul   { list-style: none; }
    /* Evita textos desbordados con palabras largas / enlaces */
    p, h1, h2, h3, h4, a, span, li { overflow-wrap: break-word; word-wrap: break-word; }

    /* ─── Navbar ─────────────────────────────────────── */
    .nav {
      position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
      padding: 1.1rem 0;
      background: rgba(14,50,61,.82);   /* larimar oscuro translúcido */
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,.06);
      transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
    }
    .nav.scrolled {
      padding: .75rem 0;
      background: rgba(10,40,50,.96);   /* larimar oscuro sólido al hacer scroll */
      box-shadow: 0 8px 30px rgba(0,0,0,.25);
    }
    .nav-inner {
      width: 85%; max-width: 1400px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center;
    }
    .logo img {
      height: 48px; width: auto; max-width: 190px;
      object-fit: contain;
      filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
      transition: transform .4s, opacity .4s, filter .4s;
    }
    .logo:hover img { transform: scale(1.05); filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }

    .nav-links { display: flex; gap: 3rem; }
    .nav-links a {
      font-size: .7rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: 2px;
      color: rgba(255,255,255,.95); transition: color .3s;
    }
    .nav-links a:hover { color: #fff; }

    /* Hamburger */
    .ham { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; background: none; border: none; cursor: pointer; z-index: 1001; }
    .ham span { width: 100%; height: 2px; background: #fff; transition: all .3s; }
    .ham.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .ham.open span:nth-child(2) { opacity: 0; }
    .ham.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Mobile menu */
    .mob {
      position: fixed; inset: 0; background: rgba(5,5,5,.98);
      backdrop-filter: blur(10px); z-index: 899;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
      transform: translateX(100%); transition: transform .5s cubic-bezier(.16,1,.3,1);
    }
    .mob.open { transform: translateX(0); }
    .mob a { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,.8); }
    .mob a:hover { color: #fff; }

    /* ─── Hero ───────────────────────────────────────── */
    .hero {
      position: relative; height: 100vh; min-height: 600px;
      display: flex; align-items: center; justify-content: center; text-align: center;
      overflow: hidden;
    }
    .hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--black); overflow: hidden; }
    /* Slideshow con crossfade entre imágenes */
    .hero-slide {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center;
      opacity: 0; transform: scale(1.04);
      transition: opacity 1.8s ease-in-out;
      will-change: opacity;
    }
    .hero-slide.active { opacity: 1; animation: hzoom 14s ease-out forwards; }
    .hero-ov  { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle, rgba(0,0,0,.02) 0%, rgba(0,0,0,.2) 100%); }
    .hero-cnt { position: relative; z-index: 2; animation: fadein 2s ease; padding: 0 1rem; }
    .hero-title {
      font-family: var(--serif); font-weight: 400;
      font-size: clamp(3rem, 10vw, 6.5rem);
      line-height: 1.05;
      letter-spacing: -1px; color: #fff;
      text-shadow: 0 5px 20px rgba(0,0,0,.5);
      margin-bottom: .35rem;
    }
    .hero-title em { font-style: italic; color: #fff; }
    .hero-sub {
      font-family: var(--serif); font-weight: 400; font-style: italic;
      font-size: clamp(1.2rem, 2vw, 1.55rem);
      max-width: 600px; margin: .8rem auto 0;
      color: rgba(255,255,255,.95); letter-spacing: .2px; line-height: 1.5;
      text-shadow: 0 2px 16px rgba(0,0,0,.65);
    }

    @keyframes hzoom  { from { transform: scale(1.04); } to { transform: scale(1.12); } }
    @keyframes fadein { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

    /* ─── Layout helpers ─────────────────────────────── */
    .container { width: 85%; max-width: 1400px; margin: 0 auto; }
    .sec       { padding: 12rem 0; position: relative; z-index: 1; }
    .sec-sm    { padding: 6rem 0; }
    .bg-white  { background: var(--white); }
    .bg-cream  { background: var(--cream); }
    .bg-dark   { background: var(--larimar-dark); color: var(--white); }   /* mismo larimar de la navbar */
    .bg-black  { background: var(--larimar-dark); color: var(--white); }
    .text-center { text-align: center; }

    /* ─── Tipografía ─────────────────────────────────── */
    h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; }
    em { font-style: italic; }

    /* Eyebrow: etiqueta de categoría sobre el título */
    .eyebrow {
      display: block; font-family: var(--sans);
      font-size: .7rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 5px;
      color: var(--blue2); margin-bottom: 1.2rem;
    }

    /* Títulos de sección: más grandes, más peso */
    .sec-title {
      font-size: clamp(3rem, 7vw, 5rem);
      font-weight: 500;
      letter-spacing: -1px; line-height: 1.05;
      margin-bottom: .5rem;
    }
    /* Línea decorativa bajo el título */
    .sec-title::after {
      content: '';
      display: block;
      width: 44px; height: 2px;
      background: var(--blue2);
      margin-top: 1.2rem;
      opacity: .7;
    }

    /* Subtítulo inmediato bajo .sec-title (párrafo que sigue) */
    .sec-subtitle {
      font-family: var(--serif); font-style: italic;
      font-size: clamp(1.15rem, 2vw, 1.45rem);
      font-weight: 400;
      line-height: 1.5;
      color: #2e2e2e;
      margin: 1.8rem 0 2rem;
    }

    /* Párrafo de entrada resaltado (lead) — frase clave bajo el h2 */
    .lead-para {
      font-family: var(--serif); font-weight: 500; font-style: italic;
      font-size: clamp(1.2rem, 2vw, 1.5rem);
      line-height: 1.45; color: #111;
      margin: 1.4rem 0 1.8rem;
    }

    .content-text {
      color: #3a3a3a; font-size: 1.05rem; line-height: 2.1; font-weight: 300;
    }
    .content-text p + p { margin-top: 2rem; }
    .content-text strong { color: var(--text); font-weight: 600; }
    .content-text a { color: var(--blue); }

    /* ─── Botones ────────────────────────────────────── */
    .btn {
      display: inline-block; padding: 1.2rem 3rem;
      font-size: .7rem; font-weight: 500;
      text-transform: uppercase; letter-spacing: 3px;
      border: 1px solid transparent; transition: all .5s ease;
    }
    .btn-outline {
      border-color: rgba(255,255,255,.5); color: #fff;
    }
    .btn-outline:hover { border-color: #fff; background: #fff; color: var(--black); }
    .btn-dark {
      width: 100%; background: var(--white); color: var(--black);
      border-color: var(--white); text-align: center; display: block;
    }
    .btn-dark:hover { background: var(--blue2); border-color: var(--blue2); color: #fff; }

    /* ─── Imágenes full-width ────────────────────────── */
    .img-full { width: 100%; display: block; overflow: hidden; }
    .img-full img {
      width: 100%; max-width: 100%; height: 65vh; min-height: 300px;
      object-fit: cover; object-position: center; display: block;
      transform: scale(1); transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
    }
    .img-full:hover img { transform: scale(1.05); }

    /* ─── Sección centrada (Tesoro) ──────────────────── */
    .sec-centered {
      max-width: 900px; margin: 0 auto; text-align: center;
    }

    /* ─── Secciones "cuento": imagen full-bleed + texto sobre el degradado ─── */
    .story {
      position: relative;
      display: flex; align-items: center;
      min-height: 88vh;
      background: var(--white);
      overflow: hidden;
    }
    .story-bg {
      position: absolute; inset: 0; z-index: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center;
    }
    /* Difuminado HORIZONTAL: el texto reposa sobre el blanco y la foto
       emerge al otro lado, fundiéndose poco a poco hacia el centro. */
    .story::before {
      content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    }
    .story-left::before {
      background: linear-gradient(to right,
        var(--white) 0%, rgba(255,255,255,.97) 32%,
        rgba(255,255,255,.6) 52%, rgba(255,255,255,0) 72%);
    }
    .story-right::before {
      background: linear-gradient(to left,
        var(--white) 0%, rgba(255,255,255,.97) 32%,
        rgba(255,255,255,.6) 52%, rgba(255,255,255,0) 72%);
    }
    /* Fundido VERTICAL muy suave para enlazar una sección con la siguiente */
    .story::after {
      content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
      background: linear-gradient(to bottom,
        var(--white) 0%, rgba(255,255,255,0) 18%,
        rgba(255,255,255,0) 82%, var(--white) 100%);
    }
    .story .container { position: relative; z-index: 2; width: 88%; }
    .story-text { position: relative; max-width: 540px; padding: 1.5rem 0; }
    .story-right .story-text { margin-left: auto; }   /* texto en el blanco de la derecha */
    .story-left  .story-text { margin-right: auto; }  /* texto en el blanco de la izquierda */
    .story .eyebrow { margin-bottom: 1rem; }
    /* Títulos de marca: más contenidos para que no se partan a la mitad */
    .story .sec-title {
      margin-bottom: .3rem;
      font-size: clamp(2.1rem, 4.2vw, 3.3rem);
      line-height: 1.08;
      word-break: keep-all;
      hyphens: none;
    }
    .story .sec-title::after { margin-top: 1rem; }
    .story .content-text { font-size: .98rem; line-height: 1.85; }
    .story .content-text p + p { margin-top: 1.2rem; }
    /* Subtítulo (SmartBoutique quote) */
    .story-subtitle {
      font-family: var(--serif); font-weight: 400; font-style: italic;
      font-size: clamp(1.25rem, 2.2vw, 1.7rem);
      line-height: 1.4; color: #1c1c1c;
      margin: 1.6rem 0 2.4rem;
      padding-left: 1.2rem;
      border-left: 3px solid var(--blue2);
    }
    .story-subtitle strong { color: var(--text); font-style: normal; font-weight: 600; }

    /* Imagen para móvil (banner apilado) */
    .story-img-mobile { display: none; }

    @media (max-width: 1024px) {
      /* En móvil/tablet: primero el texto, luego la imagen (sin degradados) */
      .story {
        display: flex; flex-direction: column; min-height: 0;
      }
      .story::before, .story::after { display: none; }   /* sin degradado en móvil */
      .story-bg { display: none; }
      .story .container { order: 1; padding: 3.5rem 0 0; }
      .story-img-mobile {
        order: 2; display: block;
        width: 100%; height: auto; max-height: 56vh;
        object-fit: cover; object-position: center;
        margin-top: 2.5rem;
      }
      .story-text {
        max-width: 620px; margin: 0 auto !important; text-align: center;
      }
      .story-subtitle { margin: -.5rem auto 2rem; }
    }

    /* ─── Sección Video ──────────────────────────────── */
    .smart-quote {
      font-family: var(--serif); font-weight: 400;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.15; letter-spacing: -.5px;
      max-width: 900px; margin: 0 auto 3rem;
      text-align: center;
    }
    .smart-quote em { font-style: italic; }

    /* ─── Video ──────────────────────────────────────── */
    .video-wrap {
      position: relative; width: 100%; max-width: 900px;
      margin: 4rem auto 0; padding-bottom: 56.25%; /* 16:9 */
      height: 0; overflow: hidden;
      box-shadow: 0 30px 60px rgba(0,0,0,.3);
      border-radius: 4px;
      background: #000 url('https://i.ytimg.com/vi/GlKClfC_JTU/hqdefault.jpg') center/cover no-repeat;
    }
    .video-wrap iframe {
      position: absolute; top: 0; left: 0;
      width: 100%; height: 100%; border: 0;
    }
    .video-play {
      position: absolute; inset: 0; margin: auto;
      width: 80px; height: 80px; border: none; border-radius: 50%;
      background: rgba(0,0,0,.6); cursor: pointer; z-index: 2;
      display: flex; align-items: center; justify-content: center;
      transition: background .3s, transform .3s;
    }
    .video-play::before {
      content: ''; margin-left: 6px;
      border-style: solid; border-width: 13px 0 13px 22px;
      border-color: transparent transparent transparent #fff;
    }
    .video-play:hover { background: #e62117; transform: scale(1.08); }
    .video-ph {
      position: absolute; inset: 0;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
      color: rgba(255,255,255,.65);
      background: linear-gradient(135deg, #0a0a0a 0%, #14242b 100%);
    }
    .video-ph svg { width: 56px; height: 56px; opacity: .75; }
    .video-ph span { font-size: .65rem; text-transform: uppercase; letter-spacing: 3px; }

    /* ─── Sección Video: foto de larimar de fondo, tenue ─ */
    #video { position: relative; overflow: hidden; background: var(--white); }
    #video::before {
      content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background: url('assets/2020-12-larimarandsilver-oval-aaa-larimar-pendants-turtleback-IMG_0175.jpg') center/cover no-repeat;
      opacity: .20;
    }
    /* Fundido a blanco arriba y abajo para enlazar con las secciones vecinas */
    #video::after {
      content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background: linear-gradient(to bottom, var(--white) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 74%, var(--white) 100%);
    }
    #video .container { position: relative; z-index: 1; }

    /* ─── Contacto ───────────────────────────────────── */
    .contact-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: clamp(2rem, 8vw, 8rem); align-items: start;
    }
    .c-title {
      font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 400; color: #fff; margin-bottom: 3rem;
    }
    .c-line {
      display: block; color: #fff;
      font-size: .95rem; font-weight: 300; padding: .5rem 0;
      transition: color .3s;
    }
    .c-line:hover { color: #fff; }
    .c-addr {
      margin-top: 2rem; color: #fff;
      font-size: .9rem; font-weight: 300; line-height: 1.8;
    }

    /* Formulario */
    .form-head {
      font-family: var(--serif); font-size: 1.2rem;
      color: #fff; letter-spacing: 1px; margin-bottom: .5rem;
    }
    .form-tags {
      font-size: .65rem; text-transform: uppercase; letter-spacing: 2px;
      color: #fff; margin-bottom: 2.5rem; line-height: 2;
    }
    .lux-form .f-row { margin-bottom: 2rem; position: relative; }
    .lux-form input,
    .lux-form select,
    .lux-form textarea {
      width: 100%; background: transparent; border: none;
      border-bottom: 1px solid rgba(255,255,255,.3);
      padding: 1rem 0; color: #fff;
      font-family: var(--sans); font-size: .9rem; font-weight: 300;
      outline: none; border-radius: 0; -webkit-appearance: none;
      transition: border-color .4s;
    }
    .lux-form input:focus,
    .lux-form textarea:focus,
    .lux-form select:focus { border-bottom-color: #fff; }
    .lux-form input::placeholder,
    .lux-form textarea::placeholder {
      color: #fff; opacity: 1; text-transform: uppercase;
      font-size: .7rem; letter-spacing: 2px;
    }
    .lux-form select option { background: var(--dark); color: #fff; }
    .lux-form textarea { resize: none; min-height: 80px; }

    .btn-send {
      width: 100%; padding: 1.3rem; background: var(--white); color: var(--black);
      border: none; font-family: var(--sans); font-size: .7rem;
      text-transform: uppercase; letter-spacing: 3px; font-weight: 600;
      cursor: pointer; transition: background .4s, color .4s;
    }
    .btn-send:hover { background: var(--blue2); color: #fff; }

    #fb { margin-top: 1rem; font-size: .85rem; display: none; }

    /* ─── Footer ─────────────────────────────────────── */
    .footer { padding: 8rem 0; }
    .foot-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
    .foot-logo img { height: 60px; opacity: .55; transition: opacity .4s, transform .4s; }
    .foot-logo:hover img { opacity: 1; transform: scale(1.05); }
    .foot-links { display: flex; gap: 4rem; }
    .foot-links a {
      font-size: .7rem; text-transform: uppercase; letter-spacing: 2px;
      color: #fff; transition: color .3s;
    }
    .foot-links a:hover { color: #fff; }
    .foot-copy { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; }

    /* ─── WhatsApp FAB ───────────────────────────────── */
    .wa-fab {
      position: fixed; bottom: 30px; right: 30px;
      width: 60px; height: 60px; border-radius: 50%;
      background: #25D366; color: #fff;
      display: flex; align-items: center; justify-content: center;
      z-index: 9999; box-shadow: 0 10px 30px rgba(37,211,102,.3);
      border: 1px solid rgba(255,255,255,.15);
      transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
    }
    .wa-fab svg { width: 28px; height: 28px; }
    .wa-fab:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(37,211,102,.55); }

    /* Back to top */
    #btt {
      position: fixed; bottom: 100px; right: 30px;
      width: 45px; height: 45px; background: #fff; color: var(--black);
      border: none; cursor: pointer; z-index: 9998;
      display: none; align-items: center; justify-content: center;
      box-shadow: 0 5px 15px rgba(0,0,0,.1); transition: .4s;
    }
    #btt.on { display: flex; }
    #btt:hover { background: var(--blue2); color: #fff; transform: translateY(-3px); }
    #btt svg { width: 18px; height: 18px; }

    /* ─── Reveal ─────────────────────────────────────── */
    .rv {
      opacity: 0; transform: translateY(28px);
      transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22,.61,.36,1);
      will-change: opacity, transform;
    }
    .rv.d1 { transition-delay: .12s; }
    .rv.d2 { transition-delay: .26s; }
    .rv.show { opacity: 1; transform: translateY(0); }

    /* Respeta a quien prefiere menos movimiento */
    @media (prefers-reduced-motion: reduce) {
      .rv { transition: opacity .6s ease; transform: none; }
      .hero-slide.active { animation: none; }
      html { scroll-behavior: auto; }
    }

    /* ─── Responsive ─────────────────────────────────── */
    @media (max-width: 900px) {
      .sec { padding: 6rem 0; }
      .sec-sm { padding: 4.5rem 0; }
      .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
      .nav-links { display: none; }
      .ham { display: flex; }
      .foot-links { gap: 2rem; flex-direction: column; align-items: center; }
      .smart-quote { font-size: 2rem; }
      .img-full img { height: 50vw; min-height: 220px; }
      .c-title { margin-bottom: 2rem; }
    }
    @media (max-width: 600px) {
      .container, .nav-inner { width: 90%; }
      .sec { padding: 4.5rem 0; }
      .hero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); letter-spacing: -.5px; }
      .hero-sub { font-size: 1rem; line-height: 1.5; }
      .logo img { height: 40px; max-width: 150px; }
      .img-full img { height: 56vw; }
      .sec-title { font-size: clamp(2.4rem, 10vw, 3rem); }
      .story .content-text { font-size: .95rem; }
      .story-subtitle { font-size: 1.25rem; }
      .c-line { font-size: .9rem; word-break: break-word; }
      .btn { padding: 1rem 2rem; }
    }
    @media (max-width: 380px) {
      .hero-title { font-size: 2.3rem; }
      .nav-links { gap: 1.5rem; }
    }
  
/* Mensajes del formulario de contacto */
.form-fb  { display:block; font-size:.9rem; margin-top:1rem; line-height:1.5; }
.form-ok  { color:#61A8BB; }
.form-err { color:#e07070; }


/* ── Google Translate: ocultar interfaz por defecto ── */
.goog-te-banner-frame,.goog-te-banner-frame.skiptranslate{display:none !important;}
.skiptranslate iframe{display:none !important;}
body{top:0 !important;position:static !important;}
#goog-gt-tt,.goog-te-balloon-frame{display:none !important;}
.goog-text-highlight{background:none !important;box-shadow:none !important;}
#google_translate_element{position:absolute;left:-9999px;top:-9999px;height:0;overflow:hidden;}

/* ── Selector de idioma (banderas) junto al logo ── */
.nav-left{ display:flex !important; flex-direction:row; align-items:center; gap:1rem; flex-wrap:nowrap; }
.nav-left .logo{ display:inline-flex; align-items:center; }
.lang-switch{ display:inline-flex; align-items:center; gap:.55rem; }
.lang-flag{
  background:none; border:none; cursor:pointer; padding:0;
  line-height:1; font-size:1.25rem; opacity:.5; filter:grayscale(60%);
  transition:opacity .3s, filter .3s, transform .3s;
}
.lang-flag:hover{ opacity:1; filter:grayscale(0%); transform:scale(1.1); }
.lang-flag.active{ opacity:1; filter:grayscale(0%); }

.foot-made{ font-size:.7rem; letter-spacing:1px; color:#fff; margin-top:.4rem; }
.foot-made a{ color:#fff; border-bottom:1px solid rgba(255,255,255,.4); }
.foot-made a:hover{ color:#fff; }

@media (max-width:600px){
  .nav-left{ gap:.6rem; }
  .lang-flag{ font-size:1.1rem; }
}
