/* Global Styles */
:root {
    --primary-yellow: #FFD700;
    /* Adjust to match image bright yellow */
    --primary-blue: #1E3A8A;
    /* Deep blue */
    --btn-red: #B91C1C;
    --text-dark: #333333;
    --text-white: #FFFFFF;
    --input-lines: #CCCCCC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f7f7f7;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    width: 100%;
    position: relative;
    /* Main header container */
}

.top-bar {
    background-color: #FFFFFF;
    padding: 20px 0;
    position: relative;
    z-index: 20;
    /* High z-index to stay on top or allow overlap handling */
}

.nav-container {
    text-align: right;
}

.top-bar nav a {
    color: #666666;
    /* Grey text as per reference */
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Background Image: fondo.png with Blue Overlay */
    background: linear-gradient(to right, rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.85)), url('../images/fondo.png') no-repeat center center/cover;
    padding: 20px 0 60px;
    /* Reduced top padding as we use margin-top on text */
    margin-top: -1px;
}

.hero-content-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Overlapping Logo */
.logo-container {
    position: absolute;
    top: -130px;
    left: 0;
    z-index: 30;
}

.main-logo {
    width: 450px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.hero-text-content {
    margin-left: 20px;
    /* Reset from 420px to small margin */
    margin-top: 100px;
    /* Push down to sit below the logo visually */
    color: white;
    text-align: left;
    z-index: 10;
    flex: 1;
    padding-right: 20px;
}

.hero-text-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-p1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-p2 {
    font-size: 2rem;
    font-weight: 800;
    font-style: normal;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main-image {
    flex: 0 0 auto;
    width: 50%;
    text-align: right;
    z-index: 5;
    margin-right: -50px;
}

.hero-main-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Responsive adjustment */
@media (max-width: 1200px) {
    .hero-text-content {
        margin-left: 0;
    }

    .main-logo {
        width: 350px;
    }

    .hero-main-image {
        width: 45%;
        margin-right: 0;
    }
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        padding-top: 80px;
        /* Add space since logo is static in responsive */
    }

    .logo-container {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }

    .main-logo {
        width: 250px;
    }

    .hero-text-content {
        margin-left: 0;
        margin-top: 0;
        /* Reset margin top */
        text-align: center;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .hero-main-image {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .top-bar {
        text-align: center;
    }

    .nav-container {
        text-align: center;
    }

    .top-bar nav a {
        margin: 0 10px;
        display: inline-block;
    }
}

/* Dates Pills */
.event-dates {
    background: #FFD200;
    padding: 30px 0 0 0;
    /* Top padding 30px, bottom 0 to merge with CTA */
    text-align: center;
    border-bottom: none;
    /* Remove divider */
    position: relative;
    /* Ensure z-index works */
    z-index: 20;
    /* Higher than CTA bar (5) to prevent hiding */
}

.dates-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.date-image {
    max-width: 100%;
    height: auto;
    width: 350px;
    /* Base width matching typical button size, or adjust if images are larger */
    transition: transform 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.date-image:hover {
    transform: translateY(-5px);
}

/* Removed old pill classes */

/* CTA Bar */
.cta-bar {
    background: #FFD200;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    border-top: none;
    margin-top: -30px;
    /* Pull drastically closer */
    position: relative;
    z-index: 5;
    /* Ensure it stays on top if overlapping */
}

.cta-link-img {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-link-img:hover {
    transform: scale(1.05);
}

.cta-link-img img {
    max-width: 100%;
    height: auto;
    width: 400px;
    /* Adjust based on image native size */
    filter: drop_shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Why Attend */
.why-attend {
    background-color: #FFD200;
    /* Match exact yellow */
    padding: 10px 0 80px;
    /* Reduced top padding to merge */
    text-align: center;
    border-top: none;
    /* Remove separator */
    margin-top: -20px;
    /* Ensure visual overlap if needed */
    position: relative;
    z-index: 6;
}

.section-title {
    display: inline-block;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 10px 40px;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 700;
    background: transparent;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.benefit-icon {
    height: 350px;
    /* Much larger icons */
    width: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Removed old .icon-circle styles */

.benefit-item h3 {
    font-size: 1.6rem;
    color: #1E3A8A;
    /* Blue text */
    margin-bottom: 10px;
    font-weight: 800;
}

.benefit-item p {
    font-size: 1.1rem;
    color: #1E3A8A;
    /* Blue text */
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.2;
}

/* Agenda Académica */
.agenda-section {
    width: 100%;
    display: block;
    line-height: 0;
    /* Elimina el espacio blanco debajo de la imagen */
    margin: 0;
    padding: 0;
}

.agenda-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Registration Form */
.registration {
    /* Gradient: Top is solid #FFD200 (matching above), bottoms fades to reveal image texture */
    background: linear-gradient(to bottom, #FFD200 0%, rgba(255, 210, 0, 0.85) 30%, rgba(255, 210, 0, 0.85) 100%), url('../images/fondo.png') no-repeat center center/cover;
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin-top: -1px;
}

/* Hide overlay as we use background-blend/gradient */
.registration .overlay {
    display: none;
}

.registration .content-wrapper {
    position: relative;
    z-index: 2;
}

.reg-header {
    margin-bottom: 40px;
    color: #1E3A8A;
    /* Primary Blue */
}

.reg-header h2 {
    font-weight: 900;
    font-size: 3.5rem;
    /* Larger and impactful */
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.reg-header p {
    font-size: 1.8rem;
    font-weight: 400;
    /* Lighter/Regular */
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
}

.reg-form {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--input-lines);
    padding: 10px 5px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 5px;
}

.submit-btn {
    background: var(--btn-red);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Payment Info */
.payment-info {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0 0;
    /* Removed bottom padding to hide blue strip */
}

.payment-info .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically centered */
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.payment-methods {
    flex: 1;
    min-width: 300px;
}

/* Payment Info Section Styling */
.payment-methods h3 {
    font-size: 2.2rem;
    /* Larger */
    font-weight: 300;
    margin-bottom: 5px;
    color: white;
}

.highlight-text {
    color: var(--primary-yellow);
    font-size: 2rem;
    /* Larger */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    /* Closer to icons */
}

.payment-icons {
    margin-bottom: 30px;
    /* Closer to button */
}

.payment-icons img {
    max-width: 100%;
    width: 350px;
    height: auto;
}

.whatsapp-btn {
    display: inline-block;
    background: #C02026;
    color: white;
    padding: 20px 40px;
    /* Larger pill */
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.25rem;
    /* Larger text */
    line-height: 1.3;
}

.pricing {
    flex: 1;
    min-width: 300px;
    text-align: left;
    /* Keep left alignment */
    padding-left: 50px;
    /* More separation */
}

.price-item {
    margin-bottom: 30px;
}

/* Divider for the first item */
.price-item:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 30px;
}

.price-item h4 {
    font-size: 1.6rem;
    /* Larger */
    font-weight: 300;
    margin-bottom: 0px;
    text-transform: uppercase;
    color: white;
}

.price-item .price {
    font-size: 4.5rem;
    /* Much Larger */
    color: var(--primary-yellow);
    font-weight: 800;
    margin: 5px 0 0 0;
    line-height: 1;
}

.price-item .price .tax {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin-left: 10px;
}

.invoice-disclaimer {
    background: linear-gradient(to bottom, #FFD200, #FFFFFF);
    /* Fade from Yellow to White */
    color: var(--primary-blue);
    text-align: center;
    padding: 30px 20px;
    /* Increased padding slightly for better gradient feel */
    margin-top: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    width: 100%;
}

.invoice-disclaimer p {
    margin: 0;
    max-width: 1000px;
    /* Prevent too wide on huge screens */
    margin: 0 auto;
}

/* Sponsors */
.sponsors {
    background: white;
    padding: 50px 0;
    text-align: center;
}

.sponsors-img {
    width: 95%;
    /* Cover almost full width */
    max-width: 1200px;
    height: auto;
    display: inline-block;
}

/* Footer */
/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background: white;
    color: #666;
    font-size: 1rem;
    border-top: 1px solid #e0e0e0;
    /* Separator line */
}

.social-icons {
    margin: 15px 0;
}

.social-icons span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #545454;
    /* Dark grey square */
    color: white;
    font-size: 1.5rem;
    margin: 0 5px;
    border-radius: 6px;
    /* Slightly rounded corners */
    text-decoration: none;
    cursor: default;
}

/* Removed hover effect */

footer p {
    margin: 5px 0;
}

/* Responsive */
/* Responsive Styles */
@media (max-width: 768px) {

    /* Header & Nav */
    .top-bar .nav-container {
        justify-content: center;
        padding: 10px 0;
    }

    .top-bar nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar nav a {
        margin: 0;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text-content {
        margin: 0 0 40px 0;
        padding: 0 20px;
        text-align: center;
    }

    .hero-text-content h1 {
        font-size: 2rem;
    }

    .hero-p2 {
        font-size: 1.4rem;
    }

    .hero-main-image {
        width: 100%;
        margin: 0;
    }

    /* Dates & CTA */
    .dates-container {
        gap: 15px;
    }

    .date-image {
        width: 90%;
        /* Scale down on mobile */
        max-width: 300px;
    }

    /* Fix for "Reserva" image being cut off on mobile */
    .cta-bar {
        margin-top: -20px;
        padding-bottom: 20px;
    }

    .cta-link-img img {
        width: 90%;
        max-width: 350px;
    }

    /* Why Attend */
    .section-title {
        font-size: 1.5rem;
        padding: 8px 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .benefit-icon {
        height: 250px;
        /* Reduce icon size */
    }

    /* Registration */
    .reg-header h2 {
        font-size: 2rem;
    }

    .reg-header p {
        font-size: 1.1rem;
    }

    .reg-form {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    /* Payment & Pricing */
    .payment-info .container {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods h3 {
        font-size: 1.8rem;
    }

    .highlight-text {
        font-size: 1.5rem;
    }

    .pricing {
        text-align: center;
        margin-top: 40px;
    }

    .price-item h4 {
        font-size: 1.5rem;
        text-align: center;
        /* Center align on mobile */
    }

    .price-item .price {
        font-size: 2.8rem;
    }

    .payment-icons img {
        width: 80%;
    }

    /* Invoice & Sponsors */
    .invoice-disclaimer {
        padding: 20px;
        font-size: 1.2rem;
    }

    .sponsors-img {
        width: 100%;
    }

    /* Footer */
    footer {
        padding: 20px 0;
    }

    .social-icons {
        margin: 10px 0;
    }
}