/* Design System & Variables */
:root {
    /* Colors extracted from New Logo */
    --primary-color: #224660;
    /* Deep Blue */
    --secondary-color: #3a6f91;
    /* Mid Blue */
    --accent-color: #3a6f91;
    /* Using Mid Blue for visibility */
    --accent-gradient: linear-gradient(135deg, #3a6f91, #9eefd2);
    /* Blue to Mint gradient */
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --background-light: #f0f4f8;
    --background-dark: #0f172a;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;

    /* Logo background for all pages */
    background-image: url('assets/logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 50%;
    /* Adjust size as needed */
    position: relative;
}

/* Overlay for readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* High opacity white overlay to fade the logo */
    z-index: -1;
    /* Behind content */
    pointer-events: none;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skip-intro {
    position: absolute;
    bottom: 50px;
    right: 50px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

#skip-intro:hover {
    background: var(--accent-color);
    color: var(--background-dark);
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    /* Glass effect dark */
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    transition: color var(--transition-speed);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections General */
.section {
    padding: 6rem 5% 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Quienes Somos */
#quienes-somos {
    position: relative;
}

.content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.mission-statement {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Proyectos */
#proyectos {
    background-color: rgba(241, 245, 249, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    cursor: pointer;
    border-top: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-top: 3px solid var(--accent-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-section {
    text-align: center;
}

.video-placeholder-small {
    width: 100%;
    max-width: 600px;
    height: 350px;
    background: var(--secondary-color);
    margin: 2rem auto;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.video-placeholder-small i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: transform 0.3s;
}

.video-placeholder-small:hover i {
    transform: scale(1.1);
}

/* Clientes (Slider) */
#clientes {
    background-color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.slider-container {
    /* Add slider styles if needed, currently using JS or simple layout */
    width: 100%;
    overflow: hidden;
}

/* Contacto */
.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

footer {
    background: var(--background-dark);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    font-weight: 400;
    transition: color var(--transition-speed);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections General */
.section {
    padding: 6rem 5% 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Quienes Somos */
#quienes-somos {
    position: relative;
}

.content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.mission-statement {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Proyectos */
#proyectos {
    background-color: rgba(241, 245, 249, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    cursor: pointer;
    border-top: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-top: 3px solid var(--accent-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-section {
    text-align: center;
}

.video-placeholder-small {
    width: 100%;
    max-width: 600px;
    height: 350px;
    background: var(--secondary-color);
    margin: 2rem auto;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.video-placeholder-small i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: transform 0.3s;
}

.video-placeholder-small:hover i {
    transform: scale(1.1);
}

/* Clientes (Slider) */
#clientes {
    background-color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.slider-container {
    /* Add slider styles if needed, currently using JS or simple layout */
    width: 100%;
    overflow: hidden;
}

/* Contacto */
.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

footer {
    background: var(--background-dark);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 5%;
    }

    /* Responsive Intro Video */
    #intro-video {
        object-fit: contain;
        background-color: #000;
        /* Ensure black bars if ratio differs */
    }
}