/* CSS Design System for Cefaro.net */

/* -------------------------------------------------------------
   RESET & VARIABLES
------------------------------------------------------------- */
:root {
    --bg-dark-base: #06090e;      /* Deep night sky / dark sea black */
    --bg-dark-panel: #0c0f16;     /* Dark panel background */
    --bg-dark-card: #111622;      /* Card background */
    
    --color-primary: #e63946;     /* Faro Red */
    --color-white: #f8f9fa;       /* Faro White */
    --color-yellow: #ffd54f;      /* Faro Beam Yellow */
    --color-yellow-glow: rgba(255, 213, 79, 0.3);
    
    --text-main: #e2e8f0;         /* Soft white */
    --text-muted: #8a99ad;        /* Slate gray */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-base);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
    background: #1e2536;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* -------------------------------------------------------------
   UTILITIES & TYPOGRAPHY
------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c32f3a 100%);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
    background: linear-gradient(135deg, #f04351 0%, var(--color-primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Background Canvas */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(6, 9, 14, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--color-white);
}

.logo-text .dot {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.3rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--color-white);
}

.nav-item.active::after, .nav-item:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at 75% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 25% 80%, rgba(255, 213, 79, 0.03) 0%, transparent 40%);
}

.hero-section .hero-content {
    flex: 1;
    padding: 0 10%;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, var(--color-white) 0%, #8895a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-lighthouse-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 5%;
    z-index: 2;
}

.lighthouse-svg {
    width: 100%;
    max-height: 75vh;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.light-glow-pulsate {
    animation: beacon-glow 4s infinite alternate ease-in-out;
}

@keyframes beacon-glow {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 3;
    pointer-events: none;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px stroke var(--text-muted);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 14px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

/* -------------------------------------------------------------
   SPLIT SCROLL SERVICES SECTION
------------------------------------------------------------- */
.services-section {
    position: relative;
    background-color: var(--bg-dark-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 2;
}

.split-layout {
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Sticky Panel (Left) */
.lighthouse-sticky-panel {
    width: 45%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
    background: radial-gradient(circle at 100% 50%, rgba(255, 213, 79, 0.04) 0%, transparent 60%);
}

.sticky-lighthouse-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Panel (Right) */
.services-scroll-panel {
    width: 55%;
    padding: 8rem 4rem 10rem 2rem;
}

.section-title-wrapper {
    margin-bottom: 4rem;
    max-width: 550px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-slow);
    opacity: 0.25;
    transform: scale(0.95) translateY(20px);
    filter: blur(1.5px);
}

/* When illuminated by the beam */
.service-card.active {
    opacity: 1;
    transform: scale(1.02) translateY(0);
    filter: blur(0);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 213, 79, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 213, 79, 0.05);
}

.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    border: 1.5px solid transparent;
    transition: var(--transition-slow);
}

.service-card.active .card-glow-border {
    border-color: var(--color-yellow);
    opacity: 0.3;
    mask-image: radial-gradient(circle at 10% 20%, black, transparent);
    -webkit-mask-image: radial-gradient(circle at 10% 20%, black, transparent);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card.active .card-icon {
    color: var(--color-yellow);
    text-shadow: 0 0 15px rgba(255, 213, 79, 0.4);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.service-card.active h3 {
    color: var(--color-white);
}

.service-summary {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.card-features li i {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.service-card.active .card-features li {
    color: var(--text-main);
}

.service-card.active .card-features li i {
    color: var(--color-primary);
}

/* Light Beam Rotations (Handled in JS) */
.light-beam-group {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* -------------------------------------------------------------
   ABOUT SECTION
------------------------------------------------------------- */
.about-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at 10% 30%, rgba(230, 57, 70, 0.02) 0%, transparent 40%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text-column p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.metrics {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 350px;
}

/* lighthouse silhouette */
.faro-silhouette-wrapper {
    position: relative;
    width: 250px;
    height: 320px;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0) 20%, rgba(230, 57, 70, 0.1) 60%, rgba(255, 213, 79, 0.05) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faro-silhouette-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.03);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.anchor-decor {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.ocean-wave {
    position: absolute;
    bottom: -10px;
    width: 200%;
    height: 40px;
    background-color: var(--bg-dark-base);
    opacity: 0.8;
}

.wave1 {
    left: 0;
    border-radius: 43%;
    animation: wave-motion 12s infinite linear;
}

.wave2 {
    left: -50%;
    border-radius: 40%;
    animation: wave-motion 8s infinite linear reverse;
    opacity: 0.5;
}

@keyframes wave-motion {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   CONTACT SECTION
------------------------------------------------------------- */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-dark-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 2;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-method-card i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-method-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-method-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    border: 1px solid rgba(255, 213, 79, 0.1);
    pointer-events: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px min prevents iOS auto-zoom */
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.15);
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark-base);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 2;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.footer-copy p {
    font-size: 0.85rem;
}

/* -------------------------------------------------------------
   RESPONSIVE LAYOUT
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
    }

    .lighthouse-sticky-panel {
        width: 100%;
        height: 50vh;
        position: relative;
        padding: 2rem;
        background: radial-gradient(circle at 50% 100%, rgba(255, 213, 79, 0.04) 0%, transparent 60%);
    }

    .services-scroll-panel {
        width: 100%;
        padding: 4rem 2rem;
    }

    .lighthouse-svg {
        max-height: 40vh;
    }

    /* All service cards visible when split layout collapses */
    .service-card {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(6, 9, 14, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 100px;
        text-align: center;
        justify-content: center;
        padding-bottom: 4rem;
    }
    
    .hero-section .hero-content {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-lighthouse-container {
        padding-right: 0;
        width: 80%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .metrics {
        gap: 1.5rem;
        justify-content: space-between;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* -------------------------------------------------------------
   SUBPAGES — SHARED
------------------------------------------------------------- */
.page-hero {
    padding: 9rem 0 5rem;
    background: radial-gradient(circle at 60% 40%, rgba(230,57,70,0.05) 0%, transparent 50%),
                linear-gradient(180deg, #0c0f16 0%, #06090e 100%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin: 0.5rem 0 1.25rem;
    letter-spacing: -0.03em;
}

.page-hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

.breadcrumb span:last-child {
    color: var(--color-primary);
}

.page-content {
    position: relative;
    z-index: 1;
}

/* Catalog sections */
.catalog-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.catalog-section:last-of-type {
    border-bottom: none;
}

.catalog-section--alt {
    background: rgba(12,15,22,0.6);
}

.catalog-category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.category-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.catalog-intro {
    max-width: 680px;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.catalog-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.catalog-card {
    background: var(--bg-dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    border-color: rgba(230,57,70,0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.catalog-card-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.catalog-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.catalog-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

.catalog-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.catalog-card-features li {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.catalog-card-features li i {
    color: var(--color-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.catalog-card-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-price {
    background: rgba(255,213,79,0.08);
    color: var(--color-yellow);
    border: 1px solid rgba(255,213,79,0.2);
}

.badge-recurrence {
    background: rgba(230,57,70,0.08);
    color: var(--color-primary);
    border: 1px solid rgba(230,57,70,0.18);
}

/* Page CTA */
.page-cta-section {
    padding: 5rem 0;
}

.page-cta-box {
    background: linear-gradient(135deg, rgba(230,57,70,0.08) 0%, rgba(255,213,79,0.04) 100%);
    border: 1px solid rgba(230,57,70,0.15);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
}

.page-cta-box p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Valores grid (nosotros) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.value-card:hover {
    border-color: rgba(255,213,79,0.15);
    transform: translateY(-2px);
}

.value-icon {
    font-size: 1.75rem;
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Coverage tags */
.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.coverage-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.coverage-tag i {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.coverage-tag--remote {
    border-color: rgba(255,213,79,0.2);
    color: var(--color-yellow);
}

.coverage-tag--remote i {
    color: var(--color-yellow);
}

/* Process steps (contacto) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Select in contact form */
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.9rem 2.5rem 0.9rem 1.1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px min prevents iOS auto-zoom */
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a99ad' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group select:focus {
    border-color: var(--color-primary);
}

.form-group select option {
    background: #111622;
    color: var(--text-main);
}

/* Responsive subpages */
@media (max-width: 768px) {
    .catalog-grid,
    .values-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .page-cta-box {
        padding: 2.5rem 1.5rem;
    }

    .catalog-category-header {
        flex-direction: row;
    }
}

/* -------------------------------------------------------------
   FORM STATES
------------------------------------------------------------- */
.form-success,
.form-notice,
.form-error {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-notice {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

.form-error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #fca5a5;
    margin-top: 1rem;
}

.form-success a,
.form-notice a,
.form-error a {
    color: inherit;
    text-decoration: underline;
}

/* -------------------------------------------------------------
   SCROLL INDICATOR FADE
------------------------------------------------------------- */
.scroll-indicator {
    transition: opacity 0.4s ease;
}

/* -------------------------------------------------------------
   TAP HIGHLIGHT — Android/iOS
------------------------------------------------------------- */
.btn,
.nav-item,
.coverage-tag,
.catalog-card,
.value-card,
a {
    -webkit-tap-highlight-color: transparent;
}

/* -------------------------------------------------------------
   SCROLL ENTRANCE ANIMATIONS
------------------------------------------------------------- */
.animate-ready {
    opacity: 0;
    translate: 0 20px;
    transition: opacity 0.5s ease, translate 0.5s ease;
}

.animate-ready.animate-in {
    opacity: 1;
    translate: 0 0;
}

/* -------------------------------------------------------------
   CATALOG CARD — Solicitar CTA (injected by JS)
------------------------------------------------------------- */
.catalog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    translate: 0 4px;
    transition: opacity 0.25s ease, translate 0.25s ease, color 0.25s ease;
    text-decoration: none;
    padding-top: 0.25rem;
}

.catalog-card:hover .catalog-card-cta {
    opacity: 1;
    translate: 0 0;
}

.catalog-card-cta i {
    font-size: 0.75rem;
    transition: translate 0.2s ease;
}

.catalog-card:hover .catalog-card-cta i {
    translate: 3px 0;
}

/* -------------------------------------------------------------
   PROCESS STEPS — horizontal connector line (desktop)
------------------------------------------------------------- */
@media (min-width: 769px) {
    .process-steps {
        position: relative;
        isolation: isolate;
    }

    .process-steps::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(230, 57, 70, 0.2) 12%,
            rgba(255, 213, 79, 0.2) 50%,
            rgba(230, 57, 70, 0.2) 88%,
            transparent 100%
        );
        z-index: -1;
    }
}

/* -------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
------------------------------------------------------------- */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* -------------------------------------------------------------
   480px BREAKPOINT — very small screens
------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .metrics {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .page-cta-box {
        padding: 2rem 1.25rem;
    }

    .contact-methods {
        gap: 1rem;
    }
}
