/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #1e8592;
    /* Theme teal */
    --text-color: #353535;
    --text-light: #ffffff;
    --text-muted: #e2e2e2;
    --bg-dark: #121212;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
}

h1 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.6px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.divider {
    border-top: 3px solid var(--primary-color);
    width: 250px;
    margin-bottom: 25px;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- HEADER --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(51, 51, 51, 0.6);
    transition: background-color 0.3s;
}

#site-header:hover {
    background-color: rgba(51, 51, 51, 1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

#site-logo img {
    max-width: 307px;
    height: auto;
    display: block;
}

/* Menu Toggle checkbox hack */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    /* hidden on desktop */
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

/* Nav */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation a:hover {
    color: var(--text-light);
}

.lang-item img {
    width: 30px;
    display: block;
}

/* Dropdown */
.has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--primary-color);
    padding: 0;
}

.has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    color: var(--text-color);
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid #f2f2f2;
    display: block;
}

.sub-menu a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .background-overlay {
    background-color: rgba(20, 102, 113, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* Slider Animation */
.hero-slider {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: slideFade 9s infinite;
}

.slide-1 {
    animation-delay: 0s;
}

.slide-2 {
    animation-delay: 3s;
}

.slide-3 {
    animation-delay: 6s;
}

@keyframes slideFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(0);
    }

    35% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
    }
}

/* --- SPLIT SECTIONS --- */
.split-section {
    position: relative;
    display: flex;
    background-color: var(--bg-dark);
    /* fallback */
    min-height: 50vh;
}

.split-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 0;
    align-items: stretch;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 5%;
}

@media screen and (min-width: 1025px) {

    #seccion-1 .content-column,
    #seccion-3 .content-column {
        flex: 0 0 60%;
        max-width: 60%;
    }

    #seccion-1 .image-column,
    #seccion-3 .image-column {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

.reverse-container {
    flex-direction: row-reverse;
}

.image-column {
    background-size: cover;
    background-position: center;
    /* Parallax effect */
}

/* Section clip paths exactly like WP Custom CSS */
#seccion-1 {
    clip-path: polygon(0 0, 0 95%, 30% 100%, 100% 95%, 100% 0, 30% 5%);
    background-color: #F2F0F2;
    margin-top: -50px;
    z-index: 3;
}

#seccion-1 h2 {
    color: var(--text-color);
}

#seccion-1 .text-content p,
#seccion-1 .text-content ul {
    color: var(--text-color);
}

#seccion-1 .image-column {
    background-image: linear-gradient(to right, #F2F0F2 0%, transparent 20%), url('images/fondo-s1.jpg');
}

#seccion-2 {
    clip-path: polygon(0 0, 0 95%, 30% 100%, 100% 95%, 100% 0);
    background-color: #111111;
    /* Darker off-black */
    margin-top: -50px;
    z-index: 2;
}

#seccion-2 .content-column {
    background-color: #1E8592;
}

#seccion-2 .text-content ul li::before {
    color: var(--text-color);
}

#seccion-2 .divider {
    border-top: 3px solid var(--text-color);
}

#seccion-2 .image-column {
    background-image: linear-gradient(to left, #1E8592 0%, transparent 20%), url('images/fondo-s2.jpg');
}

#seccion-3 {
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 30% 5%);
    background-color: #F2F0F2;
    margin-top: -50px;
    z-index: 1;
    /* Space for the bottom shape */
}

#seccion-3 h2 {
    color: var(--text-color);
}

#seccion-3 .text-content p,
#seccion-3 .text-content ul {
    color: var(--text-color);
}

#seccion-3 .image-column {
    background-image: linear-gradient(to right, #F2F0F2 0%, transparent 20%), url('images/fondo-s3.jpg');
}

/* Inner Text contents */
.text-content p {
    color: #e2e2e2;
    font-size: 16px;
    line-height: 1.8;
}

.text-content ul {
    font-size: 16px;
    margin-top: 16px;
    margin-left: 20px;
    color: #e2e2e2;
}

.text-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.text-content ul li::before {
    content: "\f0da";
    /* FontAwesome angle-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -15px;
    color: var(--primary-color);
}

/* QUINES SOMOS */
#seccion-4 {
    background-color: #1e8592;
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

#seccion-4::before {
    content: "A";
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 800px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    /* Ghost A logo */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

#seccion-4 .container {
    position: relative;
    z-index: 2;
}

#seccion-4 .text-content p,
#seccion-4 h2 {
    color: #fff;
}

.about-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.text-center-column {
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

#seccion-4 .content-column {
    padding-left: 5%;
}

#seccion-4 .divider {
    border-top: 3px solid var(--text-color);
}

/* CONTACTO */
#seccion-5 {
    background-image: url('images/fondo-contacto.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    z-index: 3;
    padding-top: 100px;
    transform: none;
    /* Force reset */
}

#seccion-5 .background-overlay {
    background-color: rgba(11, 34, 44, 0.85);
    /* Dark teal overlay */
}

#seccion-5 * {
    color: #fff;
}

.contact-info-column {
    align-items: center;
    text-align: center;
}

.contact-info-column h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.contact-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
}

.contact-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the text and icon together */
    gap: 15px;
    font-size: 16px;
    width: 100%;
}

.contact-list i {
    font-size: 20px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.inline-divider {
    margin: 30px auto;
    width: 400px;
    /* Matched to screenshot */
    max-width: 100%;
}

.social-list {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.social-list a:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Form Styles */
.contact-form {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px 40px;
    border-radius: 5px;
}

.contact-form p {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    color: #353535;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: background-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #fff;
}

.contact-form button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s;
}

.contact-form button:hover {
    background-color: #777777;
    /* From global styles button hover */
    border-color: #ffffff;
}

/* Footer */
#footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }

    .reverse-container {
        flex-direction: column;
    }

    .column {
        padding: 50px 20px;
    }

    .image-column {
        min-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle-label {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle-checkbox:checked~.main-navigation {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        color: var(--text-color);
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        display: none;
    }

    .has-children:hover .sub-menu {
        display: flex;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 400px) {

    #seccion-1,
    #seccion-2,
    #seccion-3 {
        clip-path: none;
        margin-top: 0;
    }

    .image-column {
        background-image: none !important;
        min-height: auto;
        padding: 0;
    }
}

/* --- SHAPE DIVIDERS --- */
.shape-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.shape-divider svg {
    display: block;
    width: calc(150% + 1.3px);
    height: 70px;
    transform: translateX(-50%);
    margin-left: 50%;
}

.shape-bottom {
    bottom: -1px;
}

.shape-top {
    top: -1px;
}

.shape-top svg {
    transform: rotateX(180deg);
}

#seccion-3 .shape-fill {
    fill: #1e8592;
}

/* Matches Quienes Somos */
#seccion-4 .shape-fill {
    fill: #111111;
}

/* Matches Contact */
#seccion-5 .shape-fill {
    fill: #1e8592;
}

/* Matches Quienes Somos */