@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap');

:root {
    /* Nueva Paleta Neon LED */
    --rs-primary: #39FF14; /* Verde Neón */
    --rs-primary-hover: #30df11;
    --rs-bg-dark: #111111; 
    --rs-bg-darker: #050505;
    --rs-bg-card: #1a1a1a; 
    --rs-text-light: #f5f5f5;
    --rs-text-muted: #a0a0a0;
    --rs-border: #333333;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Utilities */
    --rs-radius: 12px;
    --rs-transition: all 0.3s ease;
    
    /* Glow Effects */
    --rs-glow: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 20px rgba(57, 255, 20, 0.2);
    --rs-glow-hover: 0 0 15px rgba(57, 255, 20, 0.8), 0 0 30px rgba(57, 255, 20, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--rs-bg-dark);
    color: var(--rs-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.rs-container, .rs-container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Topbar & Navbar ================= */
.rs-topbar {
    background-color: var(--rs-bg-darker);
    color: var(--rs-text-light);
    font-size: 0.9rem;
    padding: 8px 20px;
    text-align: center;
    border-bottom: 1px solid var(--rs-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.rs-topbar a {
    color: var(--rs-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--rs-transition);
}

.rs-topbar a:hover {
    text-shadow: var(--rs-glow);
}

.rs-navbar {
    position: fixed;
    top: 35px; /* Offset for topbar */
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rs-border);
    transition: var(--rs-transition);
}

.rs-container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.rs-navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--rs-text-light);
}

.rs-navbar .logo span {
    color: var(--rs-primary);
}

.rs-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.rs-menu a {
    color: var(--rs-text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--rs-transition);
}

.rs-menu a:hover {
    color: var(--rs-primary);
}

.btn-primary-sm {
    background-color: var(--rs-primary);
    color: var(--rs-bg-dark) !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700 !important;
    box-shadow: var(--rs-glow);
    transition: var(--rs-transition);
}

.btn-primary-sm:hover {
    background-color: var(--rs-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--rs-glow-hover);
}

.rs-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================= Hero Section ================= */
.rs-hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rs-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('Fotos web/portada.jpg') center/cover no-repeat;
    z-index: -2;
}

.rs-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(17,17,17,0.8), rgba(17,17,17,0.95));
    z-index: -1;
}

.rs-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.rs-hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.rs-hero h1 .highlight {
    color: var(--rs-primary);
}

.rs-hero p {
    font-size: 1.2rem;
    color: var(--rs-text-muted);
    margin-bottom: 40px;
}

.rs-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--rs-transition);
}

.btn-primary {
    background-color: var(--rs-primary);
    color: var(--rs-bg-dark);
    box-shadow: var(--rs-glow);
}

.btn-primary:hover {
    background-color: var(--rs-primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--rs-glow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--rs-text-light);
    border: 2px solid var(--rs-text-light);
}

.btn-secondary:hover {
    background-color: var(--rs-text-light);
    color: var(--rs-bg-dark);
}

/* ================= Sections Global ================= */
.rs-section {
    padding: 100px 0;
}

.rs-darker-bg {
    background-color: var(--rs-bg-darker);
}

.rs-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.rs-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.rs-section-header p {
    color: var(--rs-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= Services Grid & Spotlight ================= */
.rs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.rs-service-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: var(--rs-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--rs-transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.rs-service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(57, 255, 20, 0.15), 
        transparent 40%
    );
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.rs-services-grid:hover .rs-service-card::before {
    opacity: 1;
}

.rs-service-card > * {
    position: relative;
    z-index: 1;
}

.rs-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.15);
}

.rs-service-card i {
    font-size: 2.5rem;
    color: var(--rs-primary);
    margin-bottom: 20px;
    transition: var(--rs-transition);
}

.rs-service-card:hover i {
    text-shadow: var(--rs-glow);
}

.rs-service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.rs-service-card p {
    color: var(--rs-text-muted);
    font-size: 0.95rem;
}

/* ================= Gallery Dynamic ================= */
.rs-swipe-indicator {
    text-align: right;
    margin-bottom: 15px;
    color: var(--rs-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: none; /* Por defecto oculto en PC */
}

@media (max-width: 768px) {
    .rs-swipe-indicator {
        display: block; /* Solo se muestra en móvil/tablet donde se usa swipe */
    }
}

.rs-pulse-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--rs-primary);
    border-radius: 20px;
    color: var(--rs-primary);
    animation: blinkPulse 1.5s infinite;
}

@keyframes blinkPulse {
    0% { opacity: 0.4; box-shadow: 0 0 0 transparent; }
    50% { opacity: 1; box-shadow: var(--rs-glow); text-shadow: 0 0 5px var(--rs-primary); }
    100% { opacity: 0.4; box-shadow: 0 0 0 transparent; }
}

.rs-gallery-grid-dynamic {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.rs-gallery-grid-dynamic::-webkit-scrollbar {
    height: 8px;
}

.rs-gallery-grid-dynamic::-webkit-scrollbar-track {
    background: var(--rs-bg-dark);
    border-radius: 10px;
}

.rs-gallery-grid-dynamic::-webkit-scrollbar-thumb {
    background: var(--rs-border);
    border-radius: 10px;
}

.rs-gallery-grid-dynamic::-webkit-scrollbar-thumb:hover {
    background: var(--rs-primary);
}

.rs-gallery-item {
    position: relative;
    border-radius: var(--rs-radius);
    overflow: hidden;
    height: 350px;
    min-width: 300px; /* For horizontal scroll */
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.rs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rs-transition);
}

.rs-gallery-item:hover img {
    transform: scale(1.1);
}

.rs-gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--rs-transition);
}

.rs-gallery-item:hover .rs-gallery-overlay {
    opacity: 1;
}

.rs-gallery-overlay span {
    color: var(--rs-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ================= Calculator Widget styles integrated ================= */
.rotulosur-quote-widget {
    background-color: var(--rs-bg-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    max-width: 800px;
    margin: 0 auto;
}

.rs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rs-form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.rs-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rs-text-light);
    margin-bottom: 8px;
}

.rs-input, .rs-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--rs-border);
    background-color: var(--rs-bg-dark);
    color: var(--rs-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--rs-transition);
}

.rs-input:focus, .rs-select:focus {
    outline: none;
    border-color: var(--rs-primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

/* Checkboxes */
.rs-extras-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--rs-bg-dark);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--rs-border);
}

.rs-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.rs-checkbox {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--rs-border);
    border-radius: 4px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: var(--rs-transition);
}

.rs-checkbox:checked + .custom-checkbox {
    background-color: var(--rs-primary);
    border-color: var(--rs-primary);
}

.rs-checkbox:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--rs-bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rs-result-card {
    background: linear-gradient(135deg, var(--rs-bg-dark), var(--rs-bg-darker));
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.rs-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--rs-primary);
}

.rs-result-label {
    display: block;
    color: var(--rs-text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rs-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--rs-primary);
    transition: var(--rs-transition);
}

.rs-action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.rs-btn-submit {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--rs-transition);
}

.rs-btn-submit:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.text-center { text-align: center; margin-top: 15px; color: var(--rs-text-muted); font-size: 0.85rem;}

/* ================= Footer ================= */
.rs-footer {
    background-color: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid var(--rs-border);
}

.rs-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.rs-footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.rs-footer-brand h2 span { color: var(--rs-primary); }
.rs-footer-brand p { color: var(--rs-text-muted); }

.rs-footer-links h3, .rs-footer-social h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--rs-text-light);
}

.rs-footer-links ul {
    list-style: none;
}

.rs-footer-links ul li {
    color: var(--rs-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rs-footer-links ul li i {
    color: var(--rs-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--rs-bg-dark);
    color: var(--rs-primary); /* Forzado a verde */
    border: 1px solid var(--rs-primary); /* Forzado a verde */
    transition: var(--rs-transition);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--rs-primary);
    color: var(--rs-bg-dark);
}

.rs-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--rs-border);
    color: var(--rs-text-muted);
    font-size: 0.9rem;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
    .rs-hero h1 { font-size: 2.8rem; }
    .rs-menu { display: none; }
    .rs-mobile-toggle { display: block; }
    .rs-grid { grid-template-columns: 1fr; }
    .rs-hero-buttons { flex-direction: column; }
    .rotulosur-quote-widget { padding: 20px; }
    
    .rs-topbar { font-size: 0.8rem; padding: 5px 10px; }
    .rs-navbar { top: 30px; }
}

/* ================= Floating WhatsApp ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--rs-primary);
    color: var(--rs-bg-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: var(--rs-glow);
    z-index: 9999;
    transition: var(--rs-transition);
    animation: pulseGlow 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #fff;
    color: #25D366;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(57, 255, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}
/* ================= Marquee Banner ================= */
.rs-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: #000;
    padding: 25px 0;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    display: flex;
    position: relative;
    z-index: 2;
}

.rs-marquee-content {
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    font-size: 3rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--rs-primary);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    text-transform: uppercase;
    padding-right: 50px; /* spacing between loops */
    letter-spacing: 3px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= Counters Section ================= */
.rs-counters {
    background-color: var(--rs-bg-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.rs-counters::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.05), transparent 70%);
}

.rs-counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rs-counter-item {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: var(--rs-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rs-counter-item h3 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--rs-primary);
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: var(--rs-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-counter-item h3 span.plus {
    font-size: 3rem;
    margin-left: 5px;
}

.rs-counter-item p {
    color: var(--rs-text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ================= FAQ Section ================= */
.rs-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.rs-faq-item {
    border-bottom: 1px solid var(--rs-border);
    margin-bottom: 10px;
}

.rs-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--rs-text-light);
    text-align: left;
    cursor: pointer; /* Will be overridden by custom cursor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--rs-transition);
}

.rs-faq-question:hover {
    color: var(--rs-primary);
}

.rs-faq-question i {
    transition: transform 0.3s ease;
}

.rs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rs-faq-answer p {
    padding-bottom: 20px;
    color: var(--rs-text-muted);
}

.rs-faq-item.active .rs-faq-answer {
    max-height: 300px;
}

.rs-faq-item.active .rs-faq-question i {
    transform: rotate(180deg);
}

/* ================= Custom Cursor ================= */
body.has-custom-cursor, body.has-custom-cursor * {
    cursor: none !important;
}

.rs-custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--rs-primary);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--rs-primary), 0 0 20px var(--rs-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border 0.2s;
    /* Smooth following */
    transition-property: width, height, background-color, border, transform;
    transition-duration: 0.1s;
    transition-timing-function: ease-out;
}

.rs-custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--rs-primary);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

@media (max-width: 768px) {
    .rs-custom-cursor { display: none !important; }
    body.has-custom-cursor, body.has-custom-cursor * { cursor: auto !important; }
}

/* ================= Page Transition ================= */
.rs-page-transition {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--rs-bg-darker);
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.rs-page-transition.loaded {
    opacity: 0;
}
