/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Light Theme Palette */
    --clr-bg-base: #ffffff;
    --clr-bg-panel: #f8f9fa;
    --clr-cyan: #0088cc;
    --clr-cyan-glow: rgba(0, 136, 204, 0.2);
    --clr-magenta: #cc00aa;
    --clr-magenta-glow: rgba(204, 0, 170, 0.2);
    --clr-purple: #5c00d1;
    --clr-text-main: #222222;
    --clr-text-muted: #666666;
    --clr-error: #e6004c;
    --clr-success: #00993d;

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--clr-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--clr-magenta);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #309AF8;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-logo img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.address-info {
    text-align: center;
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0.85;
}

.address-info p {
    margin-bottom: 2px;
}

.phone-info {
    text-align: right;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.phone-info p {
    margin-bottom: 0;
    white-space: nowrap;
}

.header-icon {
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 0;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
}

.hero-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}

.hero-image {
    width: auto;
    max-width: 100%;
    height: 400px;
    display: block;
    object-fit: contain;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ==========================================================================
   Cyber Box & Cards
   ========================================================================== */
.cyber-box {
    background: var(--clr-bg-panel);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cyber-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--clr-cyan), var(--clr-magenta), transparent);
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
    padding: 0px 0px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    background-color: #000000;
}

.countdown-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #141414;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000000;
    border: 1px solid var(--clr-cyan);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 70px;
}

.time-val {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--clr-cyan);
    text-shadow: 0 0 10px var(--clr-cyan-glow);
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.countdown-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================================================
   Forms (from guidance.md)
   ========================================================================== */
.contact-section {
    padding: 10px 0;
}

.top-contact-section {
    padding-top: 0;
    margin-top: 0px;
    position: relative;
    z-index: 10;
    background-color: #000000;
}

.top-form-wrapper {
    padding: 30px 40px;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.top-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #309AF8, #F97316);
    border-radius: 20px 20px 0 0;
}

.top-form-wrapper .field label {
    color: rgba(255, 255, 255, 0.7);
}

.top-form-header {
    margin-bottom: 16px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.top-form-header strong {
    color: #309AF8;
}

/* Align inputs height in horizontal form — selector más específico para ganar la cascada */
.cyber-form.horizontal-form input,
.cyber-form.horizontal-form select {
    padding: 10px 8px;
    font-size: 0.68rem;
}

.horizontal-form .cyber-btn {
    padding: 11px 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--clr-cyan);
}

.field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.cyber-form input,
.cyber-form select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cyber-form input:focus,
.cyber-form select:focus {
    outline: none;
    border-color: var(--clr-cyan);
    box-shadow: 0 0 5px var(--clr-cyan-glow);
    background: #ffffff;
}

.error-msg {
    display: none;
    color: var(--clr-error);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* User-invalid technique */
.cyber-form input:user-invalid {
    border-color: var(--clr-error);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

.cyber-form input:user-invalid+.error-msg {
    display: block;
}

.cyber-form input:user-valid {
    border-color: var(--clr-success);
}

/* Horizontal Form Variations */
.horizontal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
}

.horizontal-form .field {
    flex: 1 1 150px;
    margin-bottom: 0;
    min-width: 120px;
}

.horizontal-form label {
    display: none;
    /* Ocultamos labels; se usan placeholders */
}

.horizontal-form .cyber-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 0.95rem;
    align-self: flex-end;
    margin-left: auto;
    background: #309AF8;
    box-shadow: 0 4px 15px rgba(48, 154, 248, 0.35);
}

.horizontal-form .cyber-btn:hover {
    background: #1a87e8;
    box-shadow: 0 6px 20px rgba(48, 154, 248, 0.5);
}

/* En móvil el form queda vertical */
@media (max-width: 767px) {
    .horizontal-form {
        flex-direction: column;
    }

    .horizontal-form .field {
        flex: 1 1 auto;
        width: 100%;
    }

    .horizontal-form .cyber-btn {
        width: 100%;
    }
}

.cyber-btn {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--clr-magenta);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 0 15px var(--clr-magenta-glow);
}

.cyber-btn:hover {
    background: #ff33f0;
    box-shadow: 0 0 25px var(--clr-magenta-glow);
    transform: translateY(-2px);
}

.cyber-btn.outline {
    background: transparent;
    border: 2px solid #309AF8;
    color: #309AF8;
    box-shadow: 0 0 12px rgba(48, 154, 248, 0.25), inset 0 0 10px rgba(48, 154, 248, 0.08);
}

.cyber-btn.outline:hover {
    background: #309AF8;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(48, 154, 248, 0.5);
}

/* ==========================================================================
   Attributes Section
   ========================================================================== */
.attributes-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

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

@media (min-width: 769px) and (max-width: 992px) {
    .attributes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.attribute-item {
    padding: 20px;
}

.icon-neon {
    font-size: 3rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attribute-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--clr-cyan);
}

.attribute-item p {
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Promotions Section
   ========================================================================== */
.promotions-section {
    padding: 30px;
    background: #000000;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0088cc;
}

.promo-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.promo-logo {
    text-align: center;
    margin-bottom: 50px;
}

.promo-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 1;
}

.cyber-text {
    color: var(--clr-text-main);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

.promo-card {
    display: flex;
    flex-direction: column;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #309AF8, #F97316);
    border-radius: 20px 20px 0 0;
}

.promo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(48, 154, 248, 0.4);
    box-shadow: 0 16px 50px rgba(48, 154, 248, 0.2), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: -28px;
    background: #F97316;
    color: #fff;
    padding: 5px 42px;
    font-weight: 800;
    transform: rotate(45deg);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
}

.promo-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    padding-right: 40px;
}

.promo-includes {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
    flex-grow: 1;
}

.promo-price {
    margin-bottom: 25px;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.promo-ref {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.new-price {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #F97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.promo-details-list {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.promo-details-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.promo-details-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #309AF8;
}

.promo-details-list strong {
    color: var(--clr-text-main);
    font-size: 1.2rem;
}

/* ==========================================================================
   Transition Section
   ========================================================================== */
.transition-section {
    width: 100%;
    background-color: #000000;
}

.transition-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Specialties
   ========================================================================== */
.specialties-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.specialty-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.specialty-card .specialty-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.specialty-card h3 {
    font-size: 1.25rem;
    color: var(--clr-text-main);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.specialty-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.specialty-card:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--clr-cyan);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
    transform: translateY(-5px);
}

/* ==========================================================================
   Location & Map
   ========================================================================== */
.location-section {
    padding: 80px 0;
}

.location-section p {
    margin-bottom: 30px;
    color: var(--clr-text-muted);
}

.map-container {
    padding: 10px;
}

.map-container iframe {
    border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #f4f6f9;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-logo img {
    opacity: 0.5;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-info p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .header-contact {
        flex-direction: column;
        gap: 10px;
    }

    .address-info,
    .phone-info {
        text-align: center;
    }

    .cyber-box {
        padding: 20px;
    }
}