* {
    box-sizing: border-box;
}

:root {
    --navy: #082235;
    --navy-2: #12324a;
    --ink: #071722;
    --green: #5b9b67;
    --green-2: #4b8b5d;
    --gold: #c7a46b;
    --text: #0b1f2a;
    --white: #ffffff;
    --soft: #f2f5f7;
    --line: rgba(11, 31, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 23, 34, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0;
}

.nav a:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-cta {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--ink) !important;
}

/* HERO */
.hero {
    position: relative;
    min-height: clamp(600px, 84vh, 820px);
    background-image: url("/static/hero-office.jpg");
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 18, 28, 0.88) 0%, rgba(6, 18, 28, 0.70) 42%, rgba(6, 18, 28, 0.24) 100%),
        linear-gradient(180deg, rgba(6, 18, 28, 0.30) 0%, rgba(6, 18, 28, 0.08) 54%, rgba(6, 18, 28, 0.36) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 74px 0 86px;
}

.hero-kicker {
    margin: 0 0 18px;
    font-size: 15px;
    color: #d9c08f;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    max-width: 760px;
    font-size: clamp(66px, 9vw, 118px);
    line-height: 0.94;
    color: #ffffff;
    font-weight: 760;
}

.hero-text {
    margin: 0;
    max-width: 720px;
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.90);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-dark {
    background: #0a2234;
    color: #fff;
}

.btn-light {
    background: #ffffff;
    color: #0a2234;
}

.btn-outline {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.08);
}

.btn-green {
    background: #4f9963;
    color: #fff;
}

.hero .btn-dark {
    background: #d9c08f;
    color: #071722;
}

/* SECCIONES */
.home-section {
    padding: 72px 0;
}

.home-section-white {
    background: #ffffff;
}

.home-section-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-kicker {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-2);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    color: #0a2232;
}

.section-intro {
    margin: 0 auto;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.5;
    color: #2f4352;
}

/* TARJETAS Y GRIDS */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-feature {
    grid-template-columns: 1fr;
}

.feature-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 14px 34px rgba(11, 31, 42, 0.07);
    border: 1px solid var(--line);
}

.feature-card-large {
    max-width: 980px;
    margin: 0 auto;
}

.center-card {
    text-align: center;
}

.feature-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    color: #0a2232;
}

.feature-card p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #314552;
}

.feature-list {
    margin: 0;
    padding-left: 20px;
    color: #314552;
    text-align: left;
}

.feature-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-actions {
    margin-top: 22px;
}

/* LOGOS DE APPS */
.img-logo {
    width: 240px;
    max-width: 100%;
    display: block;
    margin: 0 auto 22px;
}

.img-logo-wide {
    width: 320px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(11, 31, 42, 0.10);
}

.product-image-link {
    display: inline-block;
    color: inherit;
}

.raco-cover {
    width: min(720px, 100%);
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(11, 31, 42, 0.12);
}

.raco-story {
    max-width: 840px;
    margin: 0 auto 30px;
    text-align: left;
}

.raco-story h3,
.raco-scope h3 {
    text-align: center;
}

.raco-scope {
    max-width: 860px;
    margin: 34px auto;
    padding: 28px;
    background: #f6f8f9;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 8px;
}

.workshop-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 28px;
    max-width: 860px;
}

.workshop-status div {
    background: #f6f8f9;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.workshop-status span {
    display: block;
    margin-bottom: 6px;
    color: var(--green-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.workshop-status strong {
    display: block;
    color: #0a2232;
    font-size: 17px;
    line-height: 1.3;
}

.workshop-scope {
    max-width: 860px;
    margin: 34px auto;
    padding: 28px;
    background: #f6f8f9;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 8px;
}

.workshop-scope h3 {
    text-align: center;
}

.raco-list {
    columns: 2;
    column-gap: 34px;
}

.raco-list li {
    break-inside: avoid;
}

.raco-closing {
    max-width: 840px;
    margin: 0 auto 28px !important;
    font-size: 19px !important;
}

.raco-note {
    margin-top: 24px !important;
    color: #5b6872 !important;
    font-size: 16px !important;
}

/* CONTACTO */
.contact-box {
    text-align: center;
}

.contact-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    min-width: 250px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(11,31,42,0.07);
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card a {
    color: #0b1f2a;
    font-weight: bold;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* FOOTER */
.site-footer {
    background: #082235;
    color: white;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
    padding: 50px 0 30px;
}

.footer-brand h3 {
    margin: 12px 0 10px;
    font-size: 28px;
}

.footer-brand p,
.footer-block p {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 8px 0;
}

.footer-block h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    color: #ffffff;
}

.footer-block a,
.footer-brand a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: underline;
}

.footer-logo {
    height: 72px;
    width: auto;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    padding: 18px 0;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25d366;
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    z-index: 9999;
}

.whatsapp-float:hover {
    opacity: 0.92;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .brand-text {
        font-size: 22px;
    }

    .nav a {
        font-size: 14px;
    }

    .btn {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

    .hero {
        min-height: 640px;
        background-position: 58% center;
    }

    .hero-content {
        padding: 58px 0 72px;
    }

    .hero-text {
        max-width: 700px;
    }

    .feature-grid,
    .three-cols {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .logo {
        height: 44px;
    }

    .brand-text {
        font-size: 20px;
    }

    .nav a {
        font-size: 14px;
    }

    .nav-cta {
        padding: 12px 16px;
    }

    .hero-kicker {
        font-size: 13px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 72px);
    }

    .hero-text {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        min-width: unset;
        font-size: 16px;
    }

    .img-logo {
        width: 200px;
    }
}
/* CONTADOR DE VISITAS */
.visit-counter {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
}

.visit-counter strong {
    color: #ffffff;
}

.contador-section {
    min-height: 65vh;
}

.control-section {
    min-height: 70vh;
}

.control-narrow {
    max-width: 620px;
}

.control-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.control-header h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 52px);
    color: #0a2232;
}

.control-logout {
    min-width: 120px;
    padding: 12px 20px;
    font-size: 16px;
}

.control-login-card {
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(11, 31, 42, 0.08);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(11, 31, 42, 0.08);
}

.control-login-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.control-login-card input {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 12px;
    border: 1px solid rgba(11, 31, 42, 0.18);
    border-radius: 6px;
    font-size: 18px;
}

.control-login-card .btn {
    width: 100%;
    min-width: 0;
    border: 0;
    cursor: pointer;
}

.control-error {
    margin: 0 0 16px;
    color: #9c1c1c;
    font-weight: 700;
}

.contador-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 760px;
    margin: 0 auto 34px;
}

.contador-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(11, 31, 42, 0.08);
    border: 1px solid rgba(11, 31, 42, 0.05);
}

.contador-card-main strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    color: #0a2232;
}

.control-metrics {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contador-card-main .control-date {
    font-size: 17px;
    line-height: 1.35;
    word-break: break-word;
}

.contador-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contador-table-card h3 {
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

.contador-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.contador-table th,
.contador-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(11, 31, 42, 0.10);
    text-align: left;
}

.contador-table th {
    color: #0a2232;
    background: #f2f5f7;
}

.contador-table td:nth-child(3),
.contador-table th:nth-child(3) {
    text-align: center;
    font-weight: 700;
}

.control-summary-grid {
    margin-bottom: 34px;
}

.control-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 34px;
}

.control-backup-grid {
    margin: 28px 0 0;
}

.control-backup-card {
    border-radius: 8px;
    padding: 22px;
}

.control-backup-card h3 {
    font-size: 22px;
}

.control-backup-path {
    margin: -4px 0 14px !important;
    color: #5b6872 !important;
    font-size: 14px !important;
    word-break: break-word;
}

.control-backup-ok {
    border-color: rgba(40, 95, 55, 0.2);
}

.control-backup-warning {
    border-color: rgba(114, 88, 27, 0.25);
}

.control-backup-error {
    border-color: rgba(146, 35, 35, 0.25);
}

.control-status-card {
    margin-bottom: 34px;
}

.control-status-card h3 {
    text-align: center;
}

.control-status-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.control-status-meta span {
    display: block;
    padding: 12px;
    background: #f2f5f7;
    border-radius: 6px;
    font-weight: 700;
}

.control-alerts {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.control-alert {
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(11, 31, 42, 0.08);
}

.control-alert strong,
.control-alert span {
    display: block;
}

.control-alert strong {
    margin-bottom: 4px;
    font-size: 17px;
}

.control-alert span {
    color: inherit;
    line-height: 1.45;
}

.control-alert-ok {
    background: #edf8ef;
    color: #285f37;
}

.control-alert-warning {
    background: #f6f2e8;
    color: #72581b;
}

.control-alert-error {
    background: #fff1f1;
    color: #922323;
}

.control-service {
    border-radius: 8px;
}

.control-service strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    text-transform: uppercase;
}

.control-service-ok {
    background: #edf8ef;
    color: #285f37;
}

.control-service-warning {
    background: #f6f2e8;
    color: #72581b;
}

.control-service-error {
    background: #fff1f1;
    color: #922323;
}

.control-category {
    border-radius: 8px;
}

.control-category strong {
    display: block;
    margin: 8px 0;
    font-size: 44px;
    color: #0a2232;
}

.control-badge {
    display: inline-flex;
    align-items: center;
    min-width: 86px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.control-badge-real,
.control-badge-ok,
.control-category-real {
    background: #edf8ef;
    color: #285f37;
}

.control-badge-bot,
.control-category-bot {
    background: #eef4fb;
    color: #235178;
}

.control-badge-ataque,
.control-badge-error,
.control-category-ataque {
    background: #fff1f1;
    color: #922323;
}

.control-badge-desconocido,
.control-badge-warning,
.control-category-desconocido {
    background: #f6f2e8;
    color: #72581b;
}

@media (max-width: 640px) {
    .contador-grid {
        grid-template-columns: 1fr;
    }

    .control-header {
        display: block;
    }

    .control-logout {
        margin-top: 18px;
    }

    .control-status-meta {
        grid-template-columns: 1fr;
    }

    .control-split-grid {
        grid-template-columns: 1fr;
    }
}

/* CARRUSEL DE IMÁGENES */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 32px auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 31, 42, 0.12);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-slide,
.workshop-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active,
.workshop-slide.active {
    opacity: 1;
}

.carousel-slide img,
.workshop-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: var(--green);
    border-color: var(--green);
    width: 32px;
    border-radius: 6px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-info {
    padding: 16px 20px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e5e7eb;
}

.carousel-info strong {
    color: #0a2232;
    font-size: 16px;
}

@media (max-width: 640px) {
    .carousel-wrapper {
        aspect-ratio: 4 / 3;
    }

    .raco-scope,
    .workshop-scope {
        padding: 22px;
    }

    .raco-list {
        columns: 1;
    }

    .workshop-status {
        grid-template-columns: 1fr;
    }

    .carousel-slide img,
    .workshop-slide img {
        padding: 8px;
    }

    .carousel-controls {
        bottom: 12px;
        gap: 6px;
    }

    .carousel-dot {
        width: 9px;
        height: 9px;
    }

    .carousel-dot.active {
        width: 24px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }
}
