/*
Theme Name: IVSHP - Alianza para el Conocimiento
Theme URI: https://alianzaconocimiento.org
Description: Tema personalizado para el Instituto Venezolano Suizo Henri Pittier
Author: Cámara Venezolano Suiza
Template: hello-elementor
Version: 1.0.0
Text Domain: ivshp
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Antonio:wght@100;300;400;500;600;700&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
    /* Brand Colors */
    --color-primary: #093F88;
    --color-primary-dark: #143D82;
    --color-accent-red: #D51B22;
    --color-accent-yellow: #D51B22;

    /* Neutrals */
    --color-dark: #143D82; /* Changed from black to secondary blue */
    --color-white: #FFFFFF;
    --color-light-bg: #F5F7FA;
    --color-gray: #6B7280;
    --color-gray-light: #E5E7EB;

    /* Typography */
    --font-display: 'Anton';
    --font-body: 'Antonio';

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* =============================================
   CSS RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =============================================
   GLOBAL TYPOGRAPHY
   ============================================= */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

/* Force full width on WP wrappers */
.site, .site-main, #content {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

h3 {
    font-size: 1.875rem;
    line-height: 1.2;
    color: var(--color-primary);
}

h4 {
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--color-primary);
}

h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--color-dark);
}

h5 {
    font-size: 1.25rem;
    line-height: 1.3;
}

h6 {
    font-size: 1rem;
    line-height: 1.4;
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

strong, b {
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   SELECTION
   ============================================= */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-light-bg);
}

/* =============================================
   LAYOUT: CONTAINER & SECTIONS
   ============================================= */
.ivshp-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.ivshp-section {
    padding: 80px 0;
}

.ivshp-section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.ivshp-section-dark h1,
.ivshp-section-dark h2,
.ivshp-section-dark h3,
.ivshp-section-dark h4,
.ivshp-section-dark h5,
.ivshp-section-dark h6 {
    color: var(--color-white);
}

.ivshp-section-dark p {
    color: rgba(255, 255, 255, 0.9);
}

.ivshp-section-light {
    background-color: var(--color-light-bg);
}

/* =============================================
   HERO
   ============================================= */
.ivshp-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ivshp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(9, 63, 136, 0.9) 0%,
        rgba(20, 61, 130, 0.6) 50%,
        rgba(9, 63, 136, 0.9) 100%
    );
    z-index: 1;
}

.ivshp-hero-content.ivshp-hero-box {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    margin-left: 8%;
}

.ivshp-hero-pretitle {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.5);
    color: var(--color-white);
}

.ivshp-hero-content h1.ivshp-hero-title {
    color: var(--color-white);
    font-size: 5rem;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.6);
    line-height: 0.95;
    margin-bottom: 15px;
}

.ivshp-hero-content p.ivshp-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.5);
    color: var(--color-white);
    max-width: 100%;
}

/* =============================================
   BUTTONS
   ============================================= */
.ivshp-btn-primary,
.ivshp-btn-secondary,
.ivshp-btn-outline {
    display: inline-block;
    font-family: 'Antonio', var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
    line-height: 1;
}

/* Primary Button */
.ivshp-btn-primary {
    background-color: var(--color-accent-red);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    font-weight: bold;
}

.ivshp-btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.ivshp-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button — White Border */
.ivshp-btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

.ivshp-btn-secondary:active {
    transform: translateY(0);
}

/* Outline Button — Primary Border */
.ivshp-btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.ivshp-btn-outline:active {
    transform: translateY(0);
}

/* =============================================
   CARDS
   ============================================= */
.ivshp-card {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.ivshp-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.ivshp-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ivshp-card-body {
    padding: 24px;
}

.ivshp-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.ivshp-card-body p {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 1em;
}

/* =============================================
   COUNTERS / STATS
   ============================================= */
.ivshp-counter-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-accent-yellow);
    line-height: 1;
    margin-bottom: 0.15em;
    display: block;
}

.ivshp-counter-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* =============================================
   TIMELINE
   ============================================= */
.ivshp-timeline {
    position: relative;
    width: 100%;
    margin: 160px 0;
}

.ivshp-ht-line {
    position: relative;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ivshp-ht-node {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary-dark);
    border-radius: 50%;
    z-index: 2;
}

.ivshp-ht-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Odd items (1, 3, 5) go above the line */
.ivshp-ht-node:nth-child(odd) .ivshp-ht-content {
    bottom: 30px;
}

/* Even items (2, 4, 6) go below the line */
.ivshp-ht-node:nth-child(even) .ivshp-ht-content {
    top: 30px;
}

.ivshp-ht-number {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-accent-red);
    line-height: 1;
}

.ivshp-ht-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .ivshp-timeline {
        margin: 60px 0;
        padding-left: 20px;
    }
    .ivshp-ht-line {
        flex-direction: column;
        width: 3px;
        height: auto;
        min-height: 600px;
        align-items: flex-start;
        justify-content: space-between;
        gap: 60px;
    }
    .ivshp-ht-node {
        margin-left: -4.5px;
    }
    .ivshp-ht-content {
        left: 30px;
        transform: none;
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: calc(100vw - 80px);
    }
}

/* =============================================
   BADGES
   ============================================= */
.ivshp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.ivshp-badge-red {
    background-color: var(--color-accent-red);
    color: var(--color-white);
}

.ivshp-badge-blue {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.ivshp-badge-yellow {
    background-color: var(--color-accent-yellow);
    color: var(--color-dark);
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =============================================
   FOOTER
   ============================================= */
.ivshp-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 60px;
}

.ivshp-footer h4,
.ivshp-footer h5 {
    color: var(--color-white);
    margin-bottom: 1em;
}

.ivshp-footer p {
    color: var(--color-gray);
    font-size: 0.9375rem;
}

.ivshp-footer a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: var(--transition-base);
}

.ivshp-footer a:hover {
    color: var(--color-accent-yellow);
}

.ivshp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ivshp-footer ul li {
    margin-bottom: 0.5em;
}

.ivshp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.ivshp-footer-bottom p {
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.ivshp-footer-gradient {
    height: 4px;
    background: var(--color-accent-yellow);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-white  { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-red    { color: var(--color-accent-red); }
.text-yellow { color: var(--color-accent-yellow); }
.text-gray   { color: var(--color-gray); }

.bg-primary  { background-color: var(--color-primary); }
.bg-dark     { background-color: var(--color-dark); }
.bg-light    { background-color: var(--color-light-bg); }
.bg-white    { background-color: var(--color-white); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* =============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .ivshp-section {
        padding: 60px 0;
    }

    .ivshp-hero {
        min-height: 60vh;
    }

    .ivshp-counter-number {
        font-size: 3rem;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 1rem;
    }

    .ivshp-section {
        padding: 40px 0;
    }

    .ivshp-hero {
        min-height: 50vh;
    }

    .ivshp-hero-content p {
        font-size: 1.0625rem;
    }

    .ivshp-card-img {
        height: 180px;
    }

    .ivshp-card-body {
        padding: 20px;
    }

    .ivshp-counter-number {
        font-size: 2.5rem;
    }

    .ivshp-counter-label {
        font-size: 0.875rem;
    }

    /* Timeline becomes single column */
    .ivshp-timeline::before {
        left: 20px;
    }

    .ivshp-timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }

    .ivshp-timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
        padding-right: 20px;
        padding-left: 50px;
    }

    .ivshp-timeline-item:nth-child(even) {
        left: 0;
        padding-left: 50px;
    }

    .ivshp-timeline-item::before,
    .ivshp-timeline-item:nth-child(odd)::before,
    .ivshp-timeline-item:nth-child(even)::before {
        left: 11px;
        right: auto;
    }

    .ivshp-footer {
        padding-top: 40px;
    }

    .ivshp-btn-primary,
    .ivshp-btn-secondary,
    .ivshp-btn-outline {
        padding: 12px 24px;
        font-size: 0.8125rem;
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.0625rem;
    }

    p {
        font-size: 0.9375rem;
    }

    .ivshp-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ivshp-section {
        padding: 32px 0;
    }

    .ivshp-hero {
        min-height: 45vh;
    }

    .ivshp-counter-number {
        font-size: 2rem;
    }

    .ivshp-card-body {
        padding: 16px;
    }

    .ivshp-card-img {
        height: 160px;
    }

    .ivshp-footer-bottom {
        padding: 16px 0;
        margin-top: 24px;
    }
}

/* =============================================
   FILTER BUTTONS
   ============================================= */
button.ivshp-filter-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
}
button.ivshp-filter-btn:hover,
button.ivshp-filter-btn.active {
    background: var(--color-accent-red);
    border-color: var(--color-accent-red);
    color: var(--color-white);
}


/* Elementor editor override for scroll animations */
body.elementor-editor-active .animate-on-scroll { opacity: 1 !important; transform: none !important; }
