:root {
    --primary-color: #2D2E2E; /* Slate Oscuro del Logo */
    --accent-color: #0079C1; /* Azul Rolascreen oficial */
    --accent-light: #22d3ee;
    --text-dark: #2D2E2E;
    --text-light: #52525B; /* Zinc 600 */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, .logo-placeholder {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.phone-placeholder {
    font-weight: 700;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    background-color: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.4) 100%), url('hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--border-color);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem); /* Aumentado */
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 121, 193, 0.1);
}

.hero .premium-text {
    color: var(--accent-color);
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Final CTA Banner */
.final-banner {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: #0F172A; /* Slate 900 */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 121, 193, 0.2) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
    color: var(--white);
    text-align: center;
}

.final-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 121, 193, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 10s infinite alternate ease-in-out;
    filter: blur(80px);
    z-index: 1;
}

.final-banner::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float 8s infinite alternate-reverse ease-in-out;
    filter: blur(60px);
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.final-banner h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 30px;
}

.shimmer-text {
    background: linear-gradient(to right, #22d3ee 0%, #ffffff 50%, #22d3ee 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

.final-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.25rem;
    border-radius: 100px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-value {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Pain Points */
.pain-points {
    background-color: var(--light-bg);
}

.pain-grid {
    display: flex; /* Cambiado a flex para centrar */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pain-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    border-top: 4px solid var(--accent-color); /* Cambiado de rojo a azul marca */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    flex: 0 1 350px; /* Tamaño controlado */
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.pain-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Solution Section */
.solution {
    background: var(--white);
    padding: 100px 0;
}

.solution-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.solution-visual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.solution-item {
    grid-column: span 2;
    text-align: center;
    padding: 30px 20px;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Center the last 2 items in the second row (3+2 layout) */
.solution-visual-grid .solution-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.solution-visual-grid .solution-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.solution-item:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .solution-visual-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
    .solution-item {
        grid-column: span 2;
    }
    /* En tablet (2 col por fila), el 5to queda centrado abajo solo */
    .solution-visual-grid .solution-item:nth-child(4) {
        grid-column: span 2;
    }
    .solution-visual-grid .solution-item:nth-child(5) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 767px) {
    .solution-visual-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 450px;
    }
    .solution-item,
    .solution-visual-grid .solution-item:nth-child(4),
    .solution-visual-grid .solution-item:nth-child(5) {
        width: 100%;
        grid-column: auto;
    }
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(0, 121, 193, 0.2);
}

.icon-wrap svg {
    width: 30px;
    height: 30px;
}

.solution-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.solution-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Benefits Section */
.benefits {
    background-color: var(--light-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

@media (min-width: 992px) {
    .benefits-grid .benefit-card:last-child {
        grid-column: 2;
    }
}

@media (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Masonry */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-masonry {
    columns: 3 300px;
    column-gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Trusted Text */
.trusted-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.trusted-text strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Featured Gallery Item (galeryVA) */
.gallery-item--featured {
    column-span: all;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 121, 193, 0.15);
    border: 3px solid var(--accent-color);
}

.gallery-item--featured img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* State Banner */
.state-banner {
    background: linear-gradient(135deg, #0079C1 0%, #004f80 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.state-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.state-banner-content p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.state-banner-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 36px;
    line-height: 1.3;
}

.state-banner-content .btn-primary {
    background-color: var(--white);
    color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 16px 44px;
    border-radius: 100px;
}

.state-banner-content .btn-primary:hover {
    background-color: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    padding: 60px 0;
    background: #f8fafc; /* Slate 50 - Gris muy claro */
    color: var(--text-dark);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-copy {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}
