/* css/base.css */
:root {
    /* Nueva Paleta de Colores IBM */
    --color-primary: #5A1614; /* Bordó */
    --color-primary-dark: #3A0E0C; /* Bordó Oscuro para Hover */
    --color-accent: #F2AC45;  /* Dorado/Naranja */
    /* Dorado para texto sobre fondo claro: el #F2AC45 sobre blanco queda
       lavado (contraste ~1.9:1). Este tono mantiene el dorado y se lee. */
    --color-accent-deep: #B8741C;
    /* Filete dorado fino para bordes de tarjetas, header y marcos */
    --gold-hairline: rgba(242, 172, 69, 0.45);
    --color-bg-light: #FFFFFF; /* Blanco Puro */
    --color-bg-alt: #E9E8E7;   /* Gris Claro */

    --color-text-dark: #2A2A2A;
    --color-text-light: #FFFFFF;

    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Inter', sans-serif;

    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Alto del header fijo. Lo usan el hero (para arrancar debajo) y el
       scroll-padding de los anclas: si cambia, cambia en un solo lugar. */
    --header-h: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-padding-top: var(--header-h);
}
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-accent-deep);
}

/* Filete dorado bajo los títulos de sección: corto, con degradé, firma
   visual que se repite en toda la página. */
.section-title h2::after,
.history-text-col h2::after,
.split-text h2::after,
.contact-section h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent));
}
.section-title h2::after,
.contact-section h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}
.section-title h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.section-title p {
    color: #555;
    font-size: 1.15rem;
}

/* SCROLL ANIMATIONS */
.scroll-animate {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fullscreen Video Fix: Prevents browser from cropping vertical videos when expanded */
video:-webkit-full-screen {
    object-fit: contain !important;
}
video:fullscreen {
    object-fit: contain !important;
}

/* ANIMATIONS */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(5px);}
    60% {transform: translateY(3px);}
}

/* BOTONES */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 10px 25px rgba(90, 22, 20, 0.3);
    transform: translateY(-2px);
    color: var(--color-text-light);
}
.btn-secondary {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
}
.btn-secondary:hover {
    background: #FFBD59;
    box-shadow: 0 10px 25px rgba(242, 172, 69, 0.4);
    transform: translateY(-2px);
}

/* BOTÓN ESCUDO (LOGO IBM) */
.btn-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 14px 32px 30px 32px; /* Top padding matched to standard btn (14px) for perfect text alignment */
    transition: all var(--transition);
    /* Clip-path genera la forma del escudo en la base */
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.btn-shield:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px) scale(1.05);
    color: white;
}
