/* ============================================
   LA WEBISTERÍA - Estilos principales
   Paleta pastel, flat design, formas orgánicas
   ============================================ */

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

:root {
    /* Principales */
    --turquesa: #4FA8A1;
    --turquesa-dark: #3B8F88;
    --turquesa-light: #8EC7C0;
    /* Secundarios */
    --rosa: #F4A7A3;
    --rosa-btn: #F28C8C;
    --amarillo: #F3E3A1;
    --amarillo-light: #F8EDC9;
    --lavanda: #D6B4E7;
    /* Neutros */
    --blanco: #FFFFFF;
    --gris-light: #F5F5F5;
    --texto: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Luckiest Guy', cursive;
    line-height: 1.2;
    font-weight: 400; /* Luckiest Guy only has 400 */
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 400;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.05rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: .5px;
}
.btn:hover {
    transform: scale(1.05);
}
.btn-primary {
    background: var(--rosa);
    color: var(--turquesa-dark);
    border-color: var(--turquesa);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(79,168,161,.25);
}
.btn-white {
    background: var(--blanco);
    color: var(--turquesa-dark);
    border-color: var(--turquesa);
}
.btn-white:hover {
    box-shadow: 0 4px 16px rgba(79,168,161,.2);
}
.btn-rosa {
    background: var(--rosa-btn);
    color: var(--blanco);
}
.btn-rosa:hover {
    box-shadow: 0 4px 16px rgba(242,140,140,.35);
}

/* ---------- Wave dividers ---------- */
.wave-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: relative;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: relative;
}
.logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--turquesa-dark);
    border: 4px solid var(--turquesa-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-bottom: -10px;
    margin-left: 4px;
}
.logo-la {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1rem;
    color: var(--rosa);
    letter-spacing: 1px;
    line-height: 1;
    padding-top: 2px;
}
.logo-webisteria {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.1rem;
    color: var(--turquesa-dark);
    letter-spacing: 1px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 36px;
}
.main-nav a {
    font-family: 'Luckiest Guy', cursive;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.05rem;
    color: var(--texto);
    letter-spacing: .5px;
    transition: color .2s;
    position: relative;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--rosa-btn);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rosa-btn);
    transition: width .25s;
}
.main-nav a:hover::after {
    width: 100%;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--turquesa-dark);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO (slider-based)
   ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Slider background */
.hero-slider {
    position: relative;
    width: 100%;
}
.hero-slider .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slider .hero-slide:first-child {
    position: relative;
}
.hero-slider .hero-slide.active {
    opacity: 1;
}
.hero-slider .hero-slide img {
    display: block;
    width: 100%;
    height: auto;
}
.hero-slider .hero-slide a {
    display: block;
}

/* Hero content on top */
.hero-content {
    position: absolute;
    z-index: 2;
    max-width: 600px;
    padding: 0 80px;
}
.hero-content:empty {
    display: none;
}
.hero-content h1 {
    font-size: 2.8rem;
    color: var(--blanco);
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,.2);
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--blanco);
    margin-bottom: 28px;
    max-width: 480px;
    font-family: 'Nunito', sans-serif;
    text-shadow: 1px 1px 4px rgba(0,0,0,.15);
}
.hero-content .btn-primary {
    background: var(--rosa);
    color: var(--blanco);
    border-color: var(--rosa);
    text-shadow: none;
}

/* ============================================
   SECTIONS — common
   ============================================ */
.section-padding {
    padding: 120px 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}
.color-turquesa { color: var(--turquesa-dark); }
.color-rosa { color: var(--rosa-btn); }
.color-blanco { color: var(--blanco); }

/* ============================================
   SERVICIOS SHOWCASE
   ============================================ */
.servicios-showcase {
    background: var(--blanco);
    padding: 80px 0;
}
.servicios-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.servicio-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.servicio-ilustracion {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    object-fit: contain;
}
.servicio-label {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: var(--turquesa-dark);
    font-style: italic;
    letter-spacing: 1px;
}
.servicio-divider {
    flex-shrink: 0;
    width: 8px;
    height: 120px;
    align-self: center;
}
.servicio-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   PRESENTACIÓN
   ============================================ */
.presentacion {
    background: var(--gris-light);
}
.presentacion .section-title {
    font-size: 2.4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.presentacion-texto {
    text-align: center;
    max-width: 700px;
    margin: 15px auto;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   FEATURE ROWS (Soporte, Tiempo récord, etc.)
   ============================================ */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}
.feature-text {
    flex: 1;
}
.feature-text h2 {
    font-size: 2rem;
    color: var(--turquesa-dark);
    margin-bottom: 14px;
}
.feature-text p {
    font-size: 1rem;
    color: #555;
    max-width: 480px;
}
.feature-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
}
.feature-img-placeholder {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.feat-bg-rosa { background: linear-gradient(135deg, var(--rosa) 0%, #f8d3d1 100%); }
.feat-bg-turquesa { background: linear-gradient(135deg, var(--turquesa-light) 0%, var(--turquesa) 100%); }
.feat-bg-amarillo { background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-light) 100%); }

/* ============================================
   PRECIOS — Cards
   ============================================ */
.precios {
    background: var(--blanco);
}
.precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.precio-card {
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: transform .25s;
}
.precio-card:hover {
    transform: translateY(-6px);
}
.precio-card.card-white {
    background: var(--blanco);
    border: 2px solid #eee;
}
.precio-card.card-turquesa {
    background: var(--turquesa);
    color: var(--blanco);
}
.precio-card.card-turquesa h3,
.precio-card.card-turquesa .precio-amount,
.precio-card.card-turquesa li {
    color: var(--blanco);
}
.precio-card h3 {
    font-size: 1.15rem;
    color: var(--turquesa-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.precio-amount {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.8rem;
    color: var(--turquesa-dark);
    margin-bottom: 20px;
    line-height: 1;
}
.precio-card ul {
    text-align: left;
    margin-bottom: 28px;
    flex: 1;
}
.precio-card li {
    padding: 6px 0;
    font-size: .92rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    color: #555;
}
.precio-card li:last-child { border-bottom: none; }
.precio-card li::before {
    content: '✓ ';
    color: var(--turquesa);
    font-weight: 700;
}
.precio-card.card-turquesa li::before {
    color: var(--amarillo);
}
.precio-card.card-turquesa li {
    border-bottom-color: rgba(255,255,255,.15);
}
.precio-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ============================================
   MANTENIMIENTO SECTION
   ============================================ */
.mantenimiento-section {
    background: var(--turquesa);
    color: var(--blanco);
    text-align: center;
}
.mantenimiento-section .section-title {
    color: var(--blanco);
}
.mantenimiento-section p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
    opacity: .95;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
    background: var(--gris-light);
}
.contacto-form-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--turquesa);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(79,168,161,.2);
}
.contacto-form-box .form-group {
    margin-bottom: 18px;
}
.contacto-form-box label {
    display: block;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 6px;
    font-size: .92rem;
}
.contacto-form-box input,
.contacto-form-box textarea,
.contacto-form-box select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    background: var(--blanco);
    color: var(--texto);
}
.contacto-form-box input:focus,
.contacto-form-box textarea:focus,
.contacto-form-box select:focus {
    outline: 3px solid var(--rosa);
    outline-offset: 1px;
}
.contacto-form-box textarea {
    min-height: 120px;
    resize: vertical;
}
.contacto-form-box .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contacto-form-box .btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: var(--rosa-btn);
    color: var(--blanco);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.15rem;
    font-weight: 400;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.contacto-form-box .btn-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(242,140,140,.3);
}
.form-msg {
    display: none;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    margin-top: 14px;
    font-weight: 700;
}
.form-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
}
.form-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--turquesa-dark);
    color: var(--blanco);
    text-align: center;
    padding: 40px 20px;
    font-size: .9rem;
}
.site-footer a {
    color: var(--amarillo);
}
.site-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   PREVIEW BANNER (maintenance mode)
   ============================================ */
.preview-banner {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px 16px;
    font-size: .9rem;
}
.preview-banner a {
    color: #533f03;
    font-weight: 700;
    text-decoration: underline;
}
body.has-preview-banner .site-header {
    margin-top: 0;
}
body.has-preview-banner .hero {
    /* no extra padding needed — header is static */
}

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

/* Tablet */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .section-padding { padding: 80px 0; }
    .hero { min-height: 400px; height: 60vh; }
    .hero-content { padding: 0 30px; }
    .hero-content h1 { font-size: 2.2rem; }
    .servicios-row { gap: 0; }
    .servicio-ilustracion { width: 120px; height: 120px; }
    .servicio-label { font-size: 1.2rem; }
    .servicio-divider { height: 90px; }
    .precios-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-row { gap: 30px; }
    .logo-circle { width: 52px; height: 52px; margin-bottom: -8px; }
    .logo-la { font-size: .9rem; }
    .logo-webisteria { font-size: 1.7rem; }
    .main-nav a { font-size: .9rem; }
    .main-nav ul { gap: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section-padding { padding: 60px 0; }

    /* Header */
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco);
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        transform: translateY(-110%);
        transition: transform .3s;
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    /* Hero */
    .hero { min-height: 350px; height: 50vh; }
    .hero-content { padding: 0 20px; text-align: center; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-content p { margin: 0 auto 24px; }

    /* Feature rows */
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    .feature-text p { margin: 0 auto; }

    /* Grids */
    .servicios-row {
        flex-direction: column;
        gap: 20px;
    }
    .servicio-divider {
        display: none;
    }
    .servicio-ilustracion { width: 130px; height: 130px; }
    .precios-grid {
        grid-template-columns: 1fr;
    }

    /* Contact form */
    .contacto-form-box { padding: 30px 20px; }
    .contacto-form-box .form-row {
        grid-template-columns: 1fr;
    }

    /* Section title */
    .section-title { font-size: 1.7rem; }
    .presentacion .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.45rem; }
    .precio-amount { font-size: 2.2rem; }
}
