:root {
    --primary: #29ABE2;
    --primary-dark: #1d8ab8;
    --dark: #3a3a3c;
    --darker: #2a2a2c;
    --bg: #0d0d0f;
    --card-bg: rgba(58, 58, 60, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(41, 171, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 171, 226, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
}

.blob.primary {
    background: var(--primary);
    top: -150px;
    right: -150px;
}

.blob.secondary {
    background: #6c5ce7;
    bottom: -150px;
    left: -150px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo img {
    height: 36px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(41, 171, 226, 0.3);
}

.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 8% 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-icon {
    width: 80px;
    margin-bottom: 2rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 80px 8%;
    background: rgba(255, 255, 255, 0.02);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 8%;
    background: linear-gradient(180deg, transparent 0%, rgba(41, 171, 226, 0.03) 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.options-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Type Cards */
#project-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.option-card {
    cursor: pointer;
}

.option-card input {
    display: none;
}

.option-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.option-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(41, 171, 226, 0.1);
}

.option-card:hover .card-content {
    border-color: rgba(41, 171, 226, 0.5);
}

.option-card .icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.option-card .title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.option-card .desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Extras */
.extras-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.extra-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.extra-item:hover {
    border-color: rgba(41, 171, 226, 0.4);
}

.extra-item input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.extra-item input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.extra-item input:checked~.checkmark::after {
    content: "✓";
    color: white;
    font-size: 0.9rem;
}

.extra-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.extra-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Result Panel */
.result-panel {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.result-card {
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.result-card h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.price-display {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.price-item.initial {
    background: rgba(41, 171, 226, 0.15);
}

.price-item.monthly {
    background: var(--card-bg);
}

.price-item .label {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.price-item .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.result-card .note {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 100px 8%;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 8%;
    border-top: 1px solid var(--border);
}

.footer-icon {
    width: 40px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Legal Pages */
.legal-page .legal-content {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 8%;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .result-panel {
        position: static;
    }

    #project-type {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   ANIMACIONES WOW - SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.option-card.reveal-element {
    transition-delay: 0.1s;
}

.option-card.reveal-element:nth-child(2) {
    transition-delay: 0.2s;
}

.option-card.reveal-element:nth-child(3) {
    transition-delay: 0.3s;
}

.extra-item.reveal-element:nth-child(1) {
    transition-delay: 0.05s;
}

.extra-item.reveal-element:nth-child(2) {
    transition-delay: 0.1s;
}

.extra-item.reveal-element:nth-child(3) {
    transition-delay: 0.15s;
}

.extra-item.reveal-element:nth-child(4) {
    transition-delay: 0.2s;
}

.extra-item.reveal-element:nth-child(5) {
    transition-delay: 0.25s;
}

.extra-item.reveal-element:nth-child(6) {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════
   RIPPLE EFFECT EN BOTONES
   ═══════════════════════════════════════════════════════ */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   GLOW EFFECT EN CARDS SELECCIONADAS
   ═══════════════════════════════════════════════════════ */

.option-card input:checked+.card-content {
    box-shadow: 0 0 30px rgba(41, 171, 226, 0.3),
        0 0 60px rgba(41, 171, 226, 0.1);
}

.extra-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(41, 171, 226, 0.08);
    box-shadow: 0 0 20px rgba(41, 171, 226, 0.15);
}

/* ═══════════════════════════════════════════════════════
   HERO ICON ANIMATION
   ═══════════════════════════════════════════════════════ */

.hero-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════
   BACKGROUND BLOBS - ENHANCED
   ═══════════════════════════════════════════════════════ */

.blob {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   TEXTAREA AUTO-FILLED STYLING
   ═══════════════════════════════════════════════════════ */

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    white-space: pre-wrap;
    font-family: 'Inter', monospace;
}

/* ═══════════════════════════════════════════════════════
   RESULT CARD PULSE ANIMATION
   ═══════════════════════════════════════════════════════ */

.result-card {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(41, 171, 226, 0);
    }

    50% {
        box-shadow: 0 0 40px -10px rgba(41, 171, 226, 0.3);
    }
}

/* ═══════════════════════════════════════════════════════
   NAV LINK UNDERLINE ANIMATION
   ═══════════════════════════════════════════════════════ */

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   FORM INPUT FOCUS GLOW
   ═══════════════════════════════════════════════════════ */

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.2);
}