/* Global Styles */
:root {
    --primary-bg: #f2f9fe;
    --text-color: #5c5c5c;
    --accent-color: #ffbd39;
    --dark-bg: #148ad4;
    /* Updated to brand color */
    --dark-bg-secondary: #0e6b9c;
    /* Slightly darker shade of #148ad4 for contrast if needed */
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    /* Updated font */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    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 img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--primary-bg);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-bg);
    transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        gap: 1.5rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/img/10.jpg');
    /* Using Unsplash until local asset is ready */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-bg);
    padding: 0 20px;
    margin-top: 0;
}

/* Fix for mobile background attachment */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 300px;
    /* Adjust size as needed */
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    /* Text color on button */
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #e0a532;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections General */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-bg);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    position: relative;
    z-index: 20;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Content Blocks */
.content-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-of-type(even) .content-block {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    position: relative;
    z-index: 20;
}

.text-content h3 {
    font-size: 2rem;
    color: var(--dark-bg);
    /* Using primary dark bg for headers too */
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.image-content {
    flex: 1;
    height: 400px;
    position: relative;
    z-index: 5;
}

.image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Content Blocks */
@media (max-width: 900px) {
    .content-block {
        flex-direction: column;
        gap: 2rem;
    }

    /* Override the row-reverse for even sections on mobile to ensure Text then Image order */
    section:nth-of-type(even) .content-block {
        flex-direction: column;
    }

    .image-content {
        width: 100%;
        height: 300px;
    }
}

/* Contact Section */
#contacto {
    background-color: var(--dark-bg);
    color: var(--primary-bg);
}

#contacto .section-title {
    color: var(--primary-bg);
}

#contacto .section-title::after {
    background-color: var(--accent-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-image {
    flex: 1;
    min-width: 300px;
    background-image: url('../assets/img/6.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    min-height: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-bg);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--dark-bg-secondary);
    color: var(--primary-bg);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--primary-bg);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    /* Ensure it stays on top of hero bg */
}

.wave-divider img {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: auto;
    min-height: 50px;
}

/* Ensure Hero handles the absolute wave */
.hero {
    position: relative;
}

/* Main Relative for Positioning */
main {
    position: relative;
    overflow-x: hidden;
}

/* Floating Decorative Elements */
.floating-deco {
    position: absolute;
    z-index: 10;
    /* Above image */
    opacity: 0;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1s ease-out;
    /* Bouncy entry */
    pointer-events: none;
}

.floating-deco img {
    display: block;
    width: 120px;
    /* Increased size */
    height: auto;
    /* Reset inherited styles from .image-content img */
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    /* Attempt to blend white background if present in image */
    mix-blend-mode: multiply;

    /* Continuous floating animation */
    animation: float 6s ease-in-out infinite;
}

/* Entrance States */
.floating-deco.visible {
    opacity: 1;
}

/* Side Variants relative to Image Container */
.floating-deco.left {
    left: -50px;
    top: -20px;
    /* Default offset, overridden by JS */
}

.floating-deco.left.visible {
    transform: translateX(30px) rotate(10deg);
}

.floating-deco.right {
    right: -50px;
    top: -20px;
}

.floating-deco.right.visible {
    transform: translateX(-30px) rotate(-10deg);
}

/* Keyframes for bobbing effect */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Specific Section Adjustments for Decoration */
section {
    position: relative;
    overflow: hidden;
    /* Hide horizontal scroll if images start outside */
}