/* ==========================================================================
   TACTICAL STUDIO — main.css
   Cargar después de reset.css
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Custom properties
   -------------------------------------------------------------------------- */

:root {
    /* Branding */
    --red: #c60000;
    --red-dark: #9e0404;
    --orange: #ff8c00;
    --black: #000000;
    --grey: #646766;
    --grey-text: #888787;
    --grey-light: #aba9a9;
    --grey-bg: #f5f5f5;
    --white: #ffffff;

    /* Aliases (compatibilidad con propiedades.css e inline legacy) */
    --light-grey: var(--grey-bg);
    --grafito-light: var(--grey-light);
    --naranja: var(--orange);
    --red-oscuro: var(--red-dark);
    --texto-grey: var(--grey-text);

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & layout */
    --max-width: 87.5rem;
    --section-padding-y: clamp(4rem, 8vw, 6rem);
    --section-padding-x: clamp(1.25rem, 4vw, 3rem);
    --logo-height: 5.3125rem;
    --site-header-height: calc(var(--logo-height) + 1rem);
    --container-padding: clamp(1.25rem, 4vw, 2rem);

    /* States & motion */
    --transition: all 0.2s ease;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 12px 25px rgba(198, 0, 0, 0.25);
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
}

body {
    font-family: var(--font-body);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

p {
    color: var(--black);
    margin: 0.5rem 0;
    font-weight: 400;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red);
}

@media (min-width: 1024px) {
    p {
        font-weight: 300;
    }
}


/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

section {
    padding: var(--section-padding-y) var(--section-padding-x);
}

.section--muted {
    background: var(--grey-bg);
}


/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */

/* 4.1 Buttons */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 3rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.2);
}

/* 4.2 Contact bar */

.contact-bar {
    background: var(--black);
    color: var(--white);
    padding: 1rem 0;
}

.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.contact-item {
    text-align: center;
    padding: 0.5rem 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
}

.contact-item p {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--grey-bg);
    overflow-wrap: anywhere;
}


/* 4.3 Footer */

footer {
    background: var(--black);
    color: var(--white);
    padding: clamp(3rem, 8vw, 4rem) var(--section-padding-x) clamp(1.5rem, 4vw, 2rem);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 2.5rem);
    align-items: start;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--red);
}

.footer-section p,
.footer-section a {
    display: block;
    margin-bottom: 0.65rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--white);
    transition: color 0.2s ease;
}

.footer-section p:last-child,
.footer-section a:last-child {
    margin-bottom: 0;
}

.footer-section:first-child p {
    max-width: 36rem;
    color: var(--grey-light);
}

.footer-section:nth-child(2) p {
    max-width: 22rem;
}

.footer-section:last-child {
    display: grid;
    gap: 0.25rem 1.5rem;
}

.footer-section:last-child h3 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.footer-section a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2rem) 0 0;
    border-top: 1px solid #333;
    font-size: clamp(0.8125rem, 1.8vw, 0.9rem);
    text-align: center;
    color: var(--grey);
}

.footer-bottom p {
    margin: 0;
    max-width: 38rem;
    line-height: 1.65;
    color: var(--grey);
}

.footer-bottom a {
    color: var(--grey-light);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

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

@media (min-width: 480px) {
    .footer-section:last-child {
        grid-template-columns: repeat(2, minmax(0, max-content));
        column-gap: 2.5rem;
    }
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(2rem, 4vw, 3rem);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-section:last-child {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.85fr);
        gap: clamp(2.5rem, 4vw, 4rem);
    }

    .footer-section:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 2.5rem;
    }

    .footer-bottom p {
        max-width: none;
        flex: 0 1 auto;
    }
}


/* 4.4 Hero */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--site-header-height));
    margin-top: var(--site-header-height);
    padding: clamp(3rem, 8vh, 6rem) 1.5rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 62.5rem;
    padding: 0 1rem;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(1.65rem, 7vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
}

.hero p {
    max-width: 43.75rem;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: var(--white);
}

.hero-btns {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary,
.cta-band .btn-primary {
    width: 100%;
    max-width: 20rem;
    text-align: center;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    margin: 0;
}

.cta-band .btn-primary {
    margin-top: 1.5rem;
}


/* 4.5 Section header */

.section-header {
    max-width: 50rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header--left {
    margin-left: 0;
    text-align: left;
}

.section-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--black);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--grey);
}

.divider {
    width: 5rem;
    height: 2px;
    margin: 1.5rem auto;
    background: var(--red);
}

.divider--start {
    margin-left: 0;
}


/* 4.6 Content blocks */

.why-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
}

.why-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.why-image:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-soft);
}

.why-text h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--black);
}

.why-text p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.9;
}

.quote-block {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 2rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--black);
    background: var(--grey-bg);
    border-left: 4px solid var(--red);
}

.feature-list {
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--grey);
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}


/* 4.7 Cards — benefits */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 3rem;
}

.benefit-card {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-soft);
}

.benefit-card:hover h3,
.benefit-card:hover h4 {
    color: var(--red);
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--red);
    border-radius: 50%;
    font-size: 2rem;
}

.benefit-card h3,
.benefit-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--black);
}

.benefit-card p {
    font-weight: 300;
    line-height: 1.8;
}


/* 4.8 Cards — framework */

.framework-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.framework-step {
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--grey-light);
    transition: var(--transition);
}

.framework-step:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.framework-step .step-number {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red);
}


/* 4.9 Cards — process */

.process-list {
    display: grid;
    gap: 1.5rem;
    max-width: 56.25rem;
    margin: 0 auto;
}

.process-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--grey-light);
    transition: var(--transition);
}

.process-item:hover {
    border-color: var(--red);
}

.process-item .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--red);
}


/* 4.10 Cards — services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 3rem;
}

.service-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-content {
    padding: 2.5rem;
}

.service-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--black);
}

.service-content h4 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

.service-content p {
    font-weight: 300;
    line-height: 1.9;
}

.service-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.service-checklist {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.service-checklist li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--grey);
}

.service-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--red);
}


/* 4.11 CTA band */

.cta-band {
    text-align: center;
    background: var(--black);
    color: var(--white);
}

.cta-band .section-header {
    max-width: 43.75rem;
    margin-bottom: 0;
}

.cta-band .section-title,
.cta-band p {
    color: var(--white);
}

.cta-band .section-subtitle {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}


/* 4.12 Metrics */

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric-item {
    min-width: 7.5rem;
}

.metric-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    color: var(--red);
}

.metric-item span {
    font-size: 0.85rem;
    color: var(--grey);
}


/* 4.13 WhatsApp float */

.whatsapp-float {
    position: fixed;
    right: 1.875rem;
    bottom: 1.875rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    background: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}


/* 4.14 Animations */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary,
    .cta-band .btn-primary {
        width: auto;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .framework-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .why-content {
        grid-template-columns: 1fr 1fr;
    }
}
