:root {
    --primary-blue: #0052cc;
    --dark-gray: #1e1e1e;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --hover-blue: #0041a8;
    --success-green: #28a745;
    --error-red: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    background: #111827;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1101;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem 0;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-nav a:hover {
    background-color: var(--light-gray);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 998;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Notification Banner */
.notification-banner {
    background: #FF7D2D;
    color: #2f1400;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,125,45,0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Form Section */
.form-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.form-section h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.form-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.form-section-inner {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #eef3f8;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    color: #253142;
}

.help-text {
    font-size: 12px;
    color: #4b5563;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

.amenity-option {
    display: grid;
    grid-template-columns: 18px 24px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.5rem;
    min-height: 44px;
    margin: 0;
    font-weight: 400;
    line-height: 1.35;
    cursor: pointer;
}

.amenity-icon {
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.amenity-text {
    min-width: 0;
}

@media (max-width: 640px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

button[type="submit"] {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: var(--hover-blue);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: none;
}

.results-card {
    background: var(--white);
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(40,167,69,0.2);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: var(--success-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-display {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.value-display h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.download-button {
    display: inline-block;
    background: var(--success-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #218838;
}

/* Info Sections */
.info-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

@supports (content-visibility: auto) {
    .form-section,
    .info-section,
    .coverage-section,
    .faq-teaser,
    footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 960px;
    }
}

.info-section h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
}

.info-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.faq-teaser {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.faq-teaser-card {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    border: 1px solid rgba(0, 82, 204, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 82, 204, 0.08);
}

.faq-teaser-card p {
    max-width: 640px;
    margin: 1rem auto 0;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Coverage Section */
.coverage-section {
    background: var(--light-gray);
    padding: 4rem 2rem;
}

.coverage-container {
    max-width: 1200px;
    margin: 0 auto;
}

.coverage-container h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: center;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.coverage-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--hover-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-card {
        padding: 2rem;
    }

    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }

    .cookie-notice {
        right: 1rem;
        bottom: 1rem;
        width: calc(100vw - 2rem);
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    width: min(420px, calc(100vw - 2rem));
    background: #111827;
    color: var(--white);
    padding: 1.25rem;
    display: none;
    z-index: 1000;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.28);
    contain: layout style paint;
}

.cookie-notice.is-visible {
    display: block;
}

.cookie-notice-content {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-notice-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-notice a {
    color: #ffd7ba;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice a:hover,
.cookie-notice a:focus {
    color: #fff3e8;
}

.cookie-notice button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cookie-notice button:hover {
    background-color: var(--hover-blue);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Clases utilitarias (reemplazan atributos style="" inline por CSP) */
.u-mt-10 { margin-top: 10px; }
.u-mt-15 { margin-top: 15px; }
.u-block { display: block; }
.u-text-sm { font-size: 14px; }
.u-text-center { text-align: center; }
.u-link-blue { color: #0052cc; }

/* Reemplazos de style="" inline del formulario (index.html) por CSP */
.mobile-nav-header .logo {
    color: var(--primary-blue);
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-box p {
    color: #0d47a1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.form-section-inner h3 {
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

.form-section-inner h3.section-heading-first {
    margin: 0 0 1rem;
}

.required-mark {
    color: var(--error-red);
}

.help-text--amenities {
    margin-bottom: 0.75rem;
}

#formMessage {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.value-label {
    margin-bottom: 0.5rem;
    color: #666;
}

.value-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.download-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.results-note {
    text-align: center;
    color: #666;
}

.section-intro {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2rem;
    color: #555;
    line-height: 1.7;
}

.coverage-intro {
    text-align: center;
    margin-bottom: 2rem;
}
