/**
 * Novabucal Theme Custom Styles
 * Versión 1.0.1 - Actualizada con feedback del cliente
 */

/* ========================================
   GOOGLE FONTS IMPORT
   Coolvetica no está en Google Fonts, usando Exo 2 como alternativa similar
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&display=swap');

/* Si tienes Coolvetica como archivo, descomenta esto y sube la fuente a /assets/fonts/
@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/coolvetica.woff2') format('woff2'),
         url('../fonts/coolvetica.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
*/

/* Helvetica es nativa del sistema, pero añadimos fallbacks */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: 'Exo 2', 'Coolvetica', 'Helvetica Neue', sans-serif !important;
}

/* ========================================
   LA "N" ESPECIAL DE NOVABUCAL
   Se usa como imagen inline en los títulos
   ======================================== */
.n-especial {
    display: inline-block;
    vertical-align: baseline;
    height: 1em;
    width: auto;
    margin: 0 0.1em;
}

/* ========================================
   SERVICIOS CAROUSEL - CORREGIDO
   ======================================== */
.servicios-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.servicios-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2rem 0;
}

.servicios-carousel::-webkit-scrollbar {
    display: none;
}

/* TARJETAS CORREGIDAS - Más verticales, menos anchas */
.servicio-card {
    flex: 0 0 380px;
    min-width: 380px;
    max-width: 380px;
    min-height: 580px;
    background-color: #EBE3D3;
    border-radius: 50% / 35%;
    padding: 3.5rem 2.5rem 4rem;
    text-align: center;
    scroll-snap-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.servicio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.servicio-icon {
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.servicio-icon img {
    width: 70px;
    height: 70px;
}

.servicio-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    font-family: 'Exo 2', sans-serif;
}

.servicio-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1A1A1A;
    margin-bottom: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    flex-grow: 1;
}

.servicio-numero {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(143, 147, 124, 0.15);
    font-family: 'Exo 2', sans-serif;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(143, 147, 124, 0.3);
    border: 2px solid #8F937C;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(143, 147, 124, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-nav svg {
    width: 26px;
    height: 26px;
}

/* ========================================
   TESTIMONIOS BURBUJAS
   ======================================== */
.testimonios-burbujas {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    min-height: 450px;
}

.burbuja {
    position: absolute;
    background-color: rgba(252, 251, 249, 0.96);
    color: #1A1A1A;
    padding: 1.15rem 1.65rem;
    border-radius: 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    max-width: 290px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.burbuja p {
    margin: 0;
}

.burbuja::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.burbuja-1 {
    top: 25px;
    left: 6%;
}

.burbuja-1::after {
    bottom: -11px;
    left: 32px;
    border-width: 11px 11px 0 0;
    border-color: rgba(252, 251, 249, 0.96) transparent transparent transparent;
}

.burbuja-2 {
    top: 15px;
    right: 9%;
    background-color: #BCC1A9;
    font-weight: 600;
    max-width: 210px;
}

.burbuja-2::after {
    bottom: -9px;
    right: 28px;
    border-width: 9px 9px 0 9px;
    border-color: #BCC1A9 transparent transparent transparent;
}

.burbuja-3 {
    top: 165px;
    left: 50%;
    transform: translateX(-50%);
}

.burbuja-3::after {
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 9px 9px 9px;
    border-color: transparent transparent rgba(252, 251, 249, 0.96) transparent;
}

.burbuja-4 {
    bottom: 90px;
    left: 9%;
    max-width: 310px;
}

.burbuja-4::after {
    top: -11px;
    left: 42px;
    border-width: 0 11px 11px 0;
    border-color: transparent transparent rgba(252, 251, 249, 0.96) transparent;
}

.burbuja-5 {
    bottom: 110px;
    right: 11%;
}

.burbuja-5::after {
    top: -9px;
    right: 32px;
    border-width: 0 0 9px 9px;
    border-color: transparent transparent rgba(252, 251, 249, 0.96) transparent;
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */
.novabucal-contact-form .form-group {
    margin-bottom: 1.5rem;
}

.novabucal-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1A1A1A;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.novabucal-contact-form input[type="text"],
.novabucal-contact-form input[type="email"],
.novabucal-contact-form textarea {
    width: 100%;
    padding: 0.95rem;
    border: 1px solid #BCC1A9;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FCFBF9;
}

.novabucal-contact-form input:focus,
.novabucal-contact-form textarea:focus {
    outline: none;
    border-color: #8F937C;
    box-shadow: 0 0 0 3px rgba(143, 147, 124, 0.1);
}

.novabucal-contact-form textarea {
    resize: vertical;
}

.novabucal-contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.novabucal-contact-form .checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto;
    flex-shrink: 0;
}

.novabucal-contact-form .form-note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #1A1A1A;
    opacity: 0.7;
}

.novabucal-contact-form .submit-button {
    margin-top: 1.75rem;
    padding: 0.95rem 2.75rem;
    background-color: #8F937C;
    color: #FCFBF9;
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.novabucal-contact-form .submit-button:hover {
    background-color: #BCC1A9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(143, 147, 124, 0.35);
}

.novabucal-contact-form .submit-button:active {
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet (<=768px) */
@media (max-width: 768px) {
    .wp-block-cover h1 {
        font-size: 2.8rem !important;
    }
    
    .servicios-carousel-wrapper {
        padding: 0 30px;
    }
    
    .servicio-card {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        min-height: 540px;
        padding: 3rem 2rem 3.5rem;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
    
    .testimonios-burbujas {
        min-height: 650px;
    }
    
    .burbuja {
        max-width: 240px;
        font-size: 0.88rem;
        padding: 1rem 1.4rem;
    }
    
    .burbuja-4 {
        max-width: 260px;
    }
}

/* Mobile (<=480px) */
@media (max-width: 480px) {
    .wp-block-cover h1 {
        font-size: 2.2rem !important;
    }
    
    h2 {
        font-size: 2.2rem !important;
    }
    
    h3 {
        font-size: 1.6rem !important;
    }
    
    .servicios-carousel-wrapper {
        padding: 0 15px;
    }
    
    .servicio-card {
        flex: 0 0 290px;
        min-width: 290px;
        max-width: 290px;
        min-height: 520px;
        padding: 2.5rem 1.75rem 3rem;
    }
    
    .servicio-card h3 {
        font-size: 1.6rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .testimonios-burbujas {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        min-height: auto;
        padding: 1rem;
    }
    
    .burbuja {
        position: static;
        max-width: 100%;
        margin: 0;
    }
    
    .burbuja::after {
        display: none;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
html {
    scroll-behavior: smooth;
}

*:focus-visible {
    outline: 2px solid #8F937C;
    outline-offset: 2px;
}

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

img[loading="lazy"] {
    background-color: #EBE3D3;
}
/* N de Novabucal como imagen, escalando con el texto */
.novabucal-n{
  display:inline-block;
  width:0.72em;          /* ancho relativo al tamaño del texto */
  height:1em;            /* alto = alto de la letra */
  line-height:1em;
  vertical-align:-0.10em; /* ajusta la posición (sube/baja la N) */

  background-image:url("/wp-content/themes/novabucal-theme/assets/images/real/N_de_novabucal.png");
  background-repeat:no-repeat;
  background-size:contain;
  background-position:center;

  color:transparent;     /* oculta la letra real (pero sigue estando “n” dentro) */
}
