/*
Theme Name: Rapiz Static V6 (Glass Header)
Theme URI: https://rapiz.com.do/
Author: Miguel & ChatGPT
Description: Landing ligera para RAPIZ con hero animado estilo fibra óptica y header transparente con efecto glass (blur tipo Apple).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rapiz-static-v6
*/


/* ===== Header Blanco ===== */
header {
    background: #ffffff !important;
    position: relative;
}

/* Glass eliminado, ahora fondo blanco limpio */
.header-container {
    backdrop-filter: none !important;
}

/* ===== Menú Hover Negro ===== */
nav ul li a {
    color: #000000;
    transition: 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

nav ul li a:hover {
    background: #000000;
    color: #ffffff;
}



/* ===== Header Blanco Superior ===== */
header {
    background: #ffffff !important;
}

/* ===== Sección Planes Fondo Negro ===== */
.planes-section,
#planes,
.section-planes {
    background: #000000 !important;
    color: #ffffff;
    padding: 80px 0;
}

/* Ajuste tarjetas dentro de fondo negro */
.planes-section .plan-card,
#planes .plan-card,
.section-planes .plan-card {
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Botones dentro de planes */
.planes-section .btn,
#planes .btn,
.section-planes .btn {
    background: #1DB954;
    color: #ffffff;
}



/* ===== Ajuste Header: Solo Logo Blanco ===== */

/* Mantener fondo oscuro general */
header {
    background: transparent !important;
}

/* Contenedor del header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fondo blanco SOLO detrás del logo */
.logo {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 0 20px 20px 0;
}

/* Menú mantiene fondo oscuro */
nav {
    background: transparent;
}

/* Letras del menú en blanco */
nav ul li a {
    color: #ffffff !important;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}



/* ===== Responsive / Mobile-first upgrades (v13) ===== */
:root{
  --header-height: 72px;
}

/* Make images scale nicely */
img{ max-width:100%; height:auto; }

/* Prevent horizontal scroll on mobile */
html, body { overflow-x:hidden; }

/* Header layout improvements */
.header-container{
  gap: 14px;
  padding: 10px 16px;
}

.logo img{
  display:block;
  width: 180px;
  height: auto;
}

/* Menu base */
nav ul{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  position: relative;
}
.menu-toggle span{
  position:absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1){ top: 14px; }
.menu-toggle span:nth-child(2){ top: 21px; }
.menu-toggle span:nth-child(3){ top: 28px; }
.menu-toggle.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* Backdrop for mobile nav */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}
.nav-backdrop.is-open{ display:block; }

/* Mobile nav drawer */
@media (max-width: 900px){
  .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  
  /* Keep header items aligned */
  .header-container{ justify-content: space-between; }
  
  /* Logo a bit smaller on mobile */
  .logo img{ width: 150px; }

  /* Turn nav into drawer */
  nav#site-nav{
    position: fixed;
    top: 12px;
    right: 12px;
    width: min(86vw, 360px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: rgba(20,20,20,.92);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
    transform: translateX(110%);
    transition: transform .22s ease;
    z-index: 9999;
  }
  nav#site-nav.is-open{ transform: translateX(0); }

  nav#site-nav ul{
    display:flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  nav#site-nav ul li a{
    display:block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    color:#fff !important;
  }
  nav#site-nav ul li a:hover{
    background: rgba(255,255,255,.12);
  }

  /* Hero text sizing */
  .hero h1, .hero-title{
    font-size: clamp(30px, 7vw, 44px) !important;
    line-height: 1.05 !important;
  }
  .hero p, .hero-subtitle{
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  .hero{
    padding-top: 84px !important;
    padding-bottom: 56px !important;
  }

  /* Plans grid: 1 column on mobile, 2 on tablets */
  .plans-grid{
    display:grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .plan-card{
    border-radius: 18px !important;
  }
  .plan-card .price{
    font-size: 30px !important;
  }
  .plan-card ul{
    font-size: 15px !important;
  }
  .plan-card .btn,
  .plan-card a.button,
  .plan-card a{
    min-height: 48px;
    border-radius: 14px;
  }

  /* Section paddings */
  section{ padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 901px) and (max-width: 1200px){
  .plans-grid{ grid-template-columns: repeat(2, 1fr) !important; }
}

/* Improve tap targets across the site */
a, button{ -webkit-tap-highlight-color: transparent; }
nav ul li a{ min-height: 44px; display:inline-flex; align-items:center; }

/* Smooth scrolling */
html{ scroll-behavior:smooth; }



/* ===== Logo responsive: SOLO ajustes solicitados ===== */
.rapiz-header-logo img{
  height: 52px;
  width: auto;
  display:block;
}

/* Modo móvil: logo centrado + fondo blanco redondo */
@media (max-width: 767px){
  #site-nav{ position: relative; }
  .rapiz-header-logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 9999px;
    padding: 6px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }
  .rapiz-header-logo img{
    height: 40px;
  }
}
