/* 
   Gestoría Cass - Estilos CSS Premium (Vanilla)
   Estética: Táctica, Corporativa, Robusta.
   Inspiración: Retícula limpia, bordes finos, fondo mate y acentos de seguridad.
*/

/* CSS Variables */
:root {
    /* Color Palette */
    --bg-darkest: #0a0c0e;      /* Fondo principal mate profundo */
    --bg-base: #111418;         /* Fondo de secciones secundarias */
    --bg-card: #181d22;         /* Fondo de tarjetas y contenedores */
    --border-color: #242c35;    /* Bordes finos de retícula */
    --border-active: #3c4958;   /* Bordes enfocados */
    
    --accent-orange: #ff5500;   /* Naranja táctico de seguridad */
    --accent-orange-hover: #e04b00;
    --accent-green: #60744b;    /* Verde olivo operativo */
    --accent-green-light: #839d67;
    --accent-khaki: #c4b38d;    /* Tono arena/khaki para destaque */
    
    --text-primary: #f1f5f9;    /* Blanco pizarra principal */
    --text-secondary: #94a3b8;  /* Gris pizarra secundario */
    --text-muted: #64748b;      /* Gris apagado */
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Reset & Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Geometría rígida de alto impacto */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.border-top-thin {
    border-top: 1px solid var(--border-color);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
}

p {
    font-weight: 400;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-khaki);
    border-color: var(--accent-khaki);
}

.btn-outline:hover {
    background-color: var(--accent-khaki);
    color: var(--bg-darkest);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 12, 14, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-accent {
    color: var(--accent-orange);
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-nav-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    background-color: rgba(96, 116, 75, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-khaki);
    gap: 0.5rem;
}

.btn-nav-cta:hover {
    background-color: var(--accent-green);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.2s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,12,14,0.85) 0%, rgba(10,12,14,0.97) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 2rem;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-khaki);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(196, 179, 141, 0.3);
    padding: 0.375rem 1rem;
    background-color: rgba(17, 20, 24, 0.6);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Philosophy / Grid Section */
.nosotros-section {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-darkest);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 350px;
}

.grid-item {
    border-right: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item:last-child {
    border-right: none;
}

.philosophy-header {
    background-color: var(--bg-base);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-card {
    transition: background-color 0.3s ease;
}

.value-card:hover {
    background-color: rgba(255, 85, 0, 0.02);
}

.card-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--border-active);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.value-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-khaki);
    letter-spacing: 0.05em;
}

.value-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.servicios-section {
    padding: 6.5rem 0;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.section-header-center {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.price-badge-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-darkest);
    padding: 1.5rem 3rem;
    margin-top: 2rem;
    position: relative;
}

.price-badge-container::before,
.price-badge-container::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-orange);
}
.price-badge-container::before { top: -3px; left: -3px; }
.price-badge-container::after { bottom: -3px; right: -3px; }

.price-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.price-value .currency {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.price-disclaimer {
    font-size: 0.8125rem;
    color: var(--accent-khaki);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-color);
}

.service-card {
    background-color: var(--bg-darkest);
    border-right: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.service-card:last-child {
    border-right: none;
}

.service-icon-wrapper {
    color: var(--accent-orange);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-meta-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    color: var(--accent-khaki);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.service-description {
    font-size: 0.875rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.scope-box {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    margin-bottom: 1.5rem;
}

.scope-title {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.scope-list {
    list-style: none;
}

.scope-list li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.scope-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.625rem;
    color: var(--accent-orange);
}

.exclusions-box {
    background-color: rgba(255, 85, 0, 0.02);
    border-left: 2px solid var(--accent-orange);
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.exclusions-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* Additional Value Section */
.valor-agregado-section {
    padding: 6.5rem 0;
    background-color: var(--bg-darkest);
    border-bottom: 1px solid var(--border-color);
}

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

.va-text-box .section-title {
    margin-bottom: 0.5rem;
}

.va-text-box .section-subtitle {
    margin-bottom: 2rem;
}

.va-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.va-points {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.va-point-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--accent-khaki);
    text-transform: uppercase;
}

.point-bullet {
    color: var(--accent-orange);
    font-weight: 700;
}

.va-graphic-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    min-height: 350px;
    position: relative;
}

.tactical-badge {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-active);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.badge-content {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    width: 85%;
    height: 85%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-khaki);
    line-height: 1;
    margin: 0.5rem 0;
}

.badge-desc {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--accent-orange);
}

/* Testimonials Section */
.resenas-section {
    padding: 6.5rem 0;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--accent-khaki);
    letter-spacing: 2px;
}

.tactical-badge-mini {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green-light);
    border: 1px solid var(--accent-green);
    padding: 0.25rem 0.625rem;
    background-color: rgba(96, 116, 75, 0.05);
}

.testimonial-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.client-id {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.client-location {
    font-size: 0.75rem;
    color: var(--accent-khaki);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.client-service {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact Section & Form */
.contacto-section {
    padding: 6.5rem 0;
    background-color: var(--bg-darkest);
}

.contact-info .section-title {
    margin-bottom: 0.5rem;
}

.contact-info .section-subtitle {
    margin-bottom: 2rem;
}

.contact-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    font-size: 1.25rem;
    color: var(--accent-orange);
}

.meta-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-box {
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    padding: 3rem;
}

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

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

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.required {
    color: var(--accent-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-darkest);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1.125rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background-color: rgba(255, 85, 0, 0.01);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.form-group textarea {
    resize: none;
}

/* Footer styling */
.main-footer {
    background-color: var(--bg-darkest);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.brand-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
    transition: color 0.2s ease;
}

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

.coverage-text {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    color: var(--accent-khaki);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
}

/* Legal Compliance Box */
.footer-compliance {
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.compliance-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    font-style: italic;
    border: 1px solid var(--border-color);
    padding: 1.5rem 2.5rem;
    background-color: var(--bg-darkest);
    position: relative;
}

.compliance-text::before {
    content: '!';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    color: #ffffff;
    width: 24px;
    height: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Grid / Media Queries */

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item {
        border-bottom: 1px solid var(--border-color);
    }
    .grid-item:nth-child(2) {
        border-right: none;
    }
    .grid-item:nth-child(3) {
        border-bottom: none;
    }
    .grid-item:nth-child(4) {
        border-right: none;
        border-bottom: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .service-card:last-child {
        border-bottom: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none; /* Javascript will handle responsive toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-darkest);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions .btn-nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .grid-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row-two {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-box {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
