/* ========================================
   RONILAND - Dynamic Sports Design
   Paleta: Rojo deportivo + Negro + Blanco
======================================== */

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

:root {
    --rojo: #D42A30;
    --rojo-hover: #B8252A;
    --rojo-dark: #9A1F23;
    --rojo-light: #FDE8E9;
    --negro: #111111;
    --negro-light: #1a1a1a;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    font-size: 16px;
}

h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    color: var(--negro);
    font-weight: 800;
}

h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* ========================================
   Header
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

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

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

.logo img {
    height: 45px;
    width: auto;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--rojo);
}

.btn-header {
    background: var(--rojo);
    color: var(--white) !important;
    padding: 0.875rem 1.75rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-header:hover {
    background: var(--rojo-hover);
    transform: translateY(-2px);
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--negro);
    transition: all 0.3s;
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--rojo);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 74, 74, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--negro);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--negro);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--negro);
    color: var(--white);
}

.btn-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.btn-tel svg {
    width: 20px;
    height: 20px;
}

.btn-tel:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ========================================
   Hero - Full-Bleed Immersive
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--negro);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(17, 17, 17, 0.2) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(212, 42, 48, 0.08) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--rojo);
    z-index: 3;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: heroAccentReveal 1s ease 0.4s forwards;
}

@keyframes heroAccentReveal {
    to { transform: scaleY(1); }
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 640px;
}

.hero-label {
    display: inline-block;
    color: var(--rojo);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.35s forwards;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 520px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.5s forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 1s forwards;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========================================
   Section Common
======================================== */
section {
    padding: 6rem 3rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-alt {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--rojo);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header-alt h2 {
    font-size: 3rem;
}

.section-intro {
    max-width: 600px;
    margin-bottom: 4rem;
}

.section-intro.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.05rem;
    color: var(--gray-600);
}

/* ========================================
   Líneas - Row Layout
======================================== */
.lineas {
    background: var(--white);
}

.lineas-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.linea-row.reverse {
    direction: rtl;
}

.linea-row.reverse > * {
    direction: ltr;
}

.linea-row-img {
    position: relative;
    overflow: hidden;
}

.linea-row-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.linea-row-img .linea-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--rojo);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.linea-row.reverse .linea-row-img .linea-number {
    left: auto;
    right: 1.5rem;
}

.linea-row-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.linea-row-content p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.linea-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.linea-tags li {
    background: var(--gray-100);
    color: var(--negro);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 3px solid var(--rojo);
}

/* ========================================
   Sectores
======================================== */
.sectores {
    background: var(--negro);
    color: var(--white);
}

.sectores .section-label {
    color: var(--rojo);
}

.sectores .section-intro h2 {
    color: var(--white);
}

.sectores .section-intro p {
    color: var(--gray-400);
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.sector-card {
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    position: relative;
}

.sector-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--rojo);
    transition: width 0.3s;
}

.sector-card:hover {
    background: var(--negro-light);
}

.sector-card:hover::before {
    width: 100%;
}

.sector-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--rojo);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sector-icon svg {
    width: 24px;
    height: 24px;
    color: var(--rojo);
}

.sector-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.sector-perfil {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sector-servicios {
    list-style: none;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sector-servicios li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sector-servicios li::before {
    content: '→';
    color: var(--rojo);
    font-weight: 700;
}

/* ========================================
   Empresa
======================================== */
.empresa {
    background: var(--gray-50);
}

.empresa-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.empresa-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.empresa-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

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

.propuesta-card {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s;
}

.propuesta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--rojo);
    transition: height 0.3s;
}

.propuesta-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.propuesta-card:hover::after {
    height: 100%;
}

.propuesta-icon {
    width: 48px;
    height: 48px;
    background: var(--rojo-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.propuesta-icon svg {
    width: 24px;
    height: 24px;
    color: var(--rojo);
}

.propuesta-card h4 {
    font-size: 1rem;
    color: var(--negro);
    margin-bottom: 0.75rem;
}

.propuesta-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   CTA
======================================== */
.cta {
    background: var(--rojo);
    padding: 5rem 3rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--rojo);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Contacto
======================================== */
.contacto {
    background: var(--white);
}

.contacto-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
}

.contacto-card {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    transition: all 0.3s;
}

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

.contacto-card:hover {
    background: var(--gray-50);
}

.contacto-card .dato-icon {
    width: 60px;
    height: 60px;
    background: var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contacto-card .dato-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.contacto-card .dato-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.contacto-card .dato-value {
    color: var(--negro);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.contacto-card a.dato-value:hover {
    color: var(--rojo);
}

.contacto-card address.dato-value {
    font-style: normal;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contacto-card .dato-value span {
    display: block;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========================================
   Footer
======================================== */
footer {
    background: var(--gray-100);
    color: var(--negro);
    padding: 5rem 3rem 2rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-300);
}

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

.footer-about h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.footer-about p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--negro);
    transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    color: var(--rojo);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-contact {
    text-align: right;
}

.footer-contact h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1.25rem;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.footer-contact ul li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    order: -1;
}

.footer-contact ul li a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact ul li a:hover {
    color: var(--rojo);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--rojo);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero {
        padding: 0 1.5rem;
        min-height: 90vh;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .linea-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .linea-row.reverse {
        direction: ltr;
    }

    .linea-row-img img {
        height: 300px;
    }

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

    .empresa-content {
        grid-template-columns: 1fr;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-about,
    .footer-contact {
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 0.75rem 0;
    }

    .btn-header {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 0 1rem;
        min-height: 100svh;
    }

    .hero-accent {
        width: 3px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-scroll {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-header-alt h2 {
        font-size: 2rem;
    }

    .sectores-grid {
        grid-template-columns: 1fr;
    }

    .sector-card {
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .contacto-cards {
        grid-template-columns: 1fr;
        border: none;
    }

    .contacto-card {
        border: 1px solid var(--gray-200);
        border-right: 1px solid var(--gray-200);
        margin-bottom: -1px;
    }

    .propuesta-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta .btn-primary,
    .cta .btn-tel {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Animations
======================================== */
.linea-row,
.sector-card,
.propuesta-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.linea-row.visible,
.sector-card.visible,
.propuesta-card.visible {
    opacity: 1;
    transform: translateY(0);
}
