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

:root {
    /* Base: 1rem = 16px */
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.backdrop-contacto {
    background-color: #0b1324;
    position: relative;
    width: 100%;
    min-height: 155.875rem; /* 2494px */
    height: auto;
    margin: 0 auto;
}

/* Navigation Bar styles are in navbar.css */

/* Hero Section */
.hero-section-contacto {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* at least full viewport height */
    width: 100%;
    overflow: hidden;
}

.hero-background-contacto {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background-contacto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background-overlay-contacto {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-overlay-contacto {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.hero-title-contacto {
    position: relative;
    margin-top: 15%;
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    color: white;
    z-index: 1;
}

/* Interactive Cards Section */
.cards-section-contacto {
    position: relative;
    width: 100%;
    display: flex;
    gap: 3rem; /* 40px */
    justify-content: center;
    flex-wrap: wrap; /* allow cards to wrap on smaller screens */
}

.interactive-card-contacto {
    position: relative;
    margin-top: 10%;
    width: min(90%, 36.6875rem); /* responsive width */
    background-color: #002d5c;
    border-radius: 0.625rem; /* 10px */
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0.25rem 0.25rem 1.25rem 0 rgba(0, 0, 0, 0.2); /* 4px 4px 20px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto; /* let content define height */
}

/* Card Background */
.card-background-contacto {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.card-background-contacto img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card-overlay-contacto {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.4s ease;
}

.card-overlay-dark {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Card Content */
.card-content-contacto {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    height: auto;
    transition: transform 0.4s ease;
}

.card-title-contacto {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    letter-spacing: 0.045rem; /* 0.72px */
    color: white;
    margin-bottom: 1rem;
    word-break: break-word;
    white-space: normal;
}

.card-text-contacto {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
    letter-spacing: 0.03375rem; /* 0.54px */
    color: white;
    word-break: break-word;
    white-space: normal;
}

.card-text-contacto p {
    margin: 0;
}

.text-bold {
    font-family: 'Afacad', sans-serif;
    font-weight: 700;
    font-size: 1.5rem; /* 24px */
}

.text-regular {
    font-size: 1.25rem; /* 20px */
}

.card-right-contacto .card-text-contacto p {
    font-size: 1.25rem; /* 20px */
}

/* Card Arrow at bottom-right corner */
.card-arrow-contacto {
    position: absolute;
    right: 1.6875rem; /* 27px */
    bottom: 1.6875rem; /* 27px from bottom */
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    opacity: 0;
}

.card-arrow-contacto svg {
    width: 100%;
    height: 100%;
}

/* Hover Effects */
.interactive-card-contacto:hover {
    background-color: #66a0cb;
}

.interactive-card-contacto:hover .card-background-contacto img {
    opacity: 0.7;
}

.interactive-card-contacto:hover .card-overlay-contacto {
    background-color: #66a0cb;
}

.interactive-card-contacto:hover .card-content-contacto {
    transform: translateX(-3.125rem); /* -50px */
}

.interactive-card-contacto:hover .card-arrow-contacto {
    opacity: 0.7;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 90rem) {
    .cards-section-contacto {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .interactive-card-contacto {
        width: 90%;
        max-width: 36.6875rem;
    }
}


/* Form Introduction Section */
.form-intro-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.875rem; /* 30px */
    padding: 3.75rem 2rem; /* 60px 32px */
    margin-top: 2rem; /* 32px */
}

.form-intro-text {
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    letter-spacing: 0.0375rem; /* 0.6px */
    color: white;
    text-align: center;
    width: 42.75rem; /* 684px */
    max-width: 90%;
}

/* Divider Line */
.divider-line {
    width: 50%;
    height: 0.25rem;
    background: #3d5a7a;
    margin: 0;
  }

/* Contact Form Section */
.contact-form-section-contacto {
    position: relative;
    width: 42.75rem; /* 684px */
    max-width: 90%;
    min-height: 64.1875rem; /* 1027px */
    background-color: rgba(10, 66, 125, 0.6);
    margin: 0 auto 3rem;
    padding: 6.8125rem 4rem 3rem; /* 109px 64px 48px */
    border-radius: 0.625rem;
}

.form-title-contacto {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3.75rem; /* 60px */
    line-height: normal;
    letter-spacing: 0.1875rem; /* 3px */
    color: white;
    margin-bottom: 3.75rem; /* 60px */
}

.contact-form-contacto {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* 64px */
}

/* Reduce gap before privacy checkbox - override form gap */
.form-group-contacto:last-of-type {
    margin-bottom: 1rem;
}

.form-group-contacto {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
}

.form-label-contacto {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem; /* 16px */
    line-height: normal;
    letter-spacing: 0.01rem; /* 0.16px */
    color: white;
}

.form-input-contacto,
.form-textarea-contacto {
    width: 100%;
    background-color: #cad3da;
    border: 0.25rem solid #a7becf; /* 4px */
    border-radius: 0.1875rem; /* 3px */
    padding: 0.625rem; /* 10px */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem; /* 16px */
    letter-spacing: 0.05rem; /* 0.8px */
    color: #666666;
}

.form-input-contacto {
    height: 3.75rem; /* 60px */
}

.form-textarea-contacto {
    height: 11.9375rem; /* 191px */
    resize: none;
}

.form-input-contacto::placeholder,
.form-textarea-contacto::placeholder {
    color: white;
}

.form-submit-btn-contacto {
    width: 100%;
    height: 3.125rem; /* 50px */
    padding: 0.625rem 1.25rem; /* 10px 20px */
    background-color: transparent;
    border: 0.0625rem solid white; /* 1px */
    border-radius: 1.875rem; /* 30px */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit-btn-contacto span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem; /* 20px */
    line-height: normal;
    letter-spacing: 0.0375rem; /* 0.6px */
    color: white;
}

.btn-arrow-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem; /* 30px */
    height: 1.875rem; /* 30px */
}

.btn-arrow-contacto svg {
    width: 100%;
    height: 100%;
}

.form-submit-btn-contacto:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Privacy Checkbox */
.privacy-checkbox-contacto {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hidden-checkbox-contacto {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-icon-contacto {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-checkbox-contacto label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.01rem;
    color: white;
    cursor: pointer;
}

.privacy-link-contacto {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.privacy-link-contacto:hover {
    opacity: 0.8;
}

/* Privacy Modal Overlay - Modern & Minimalist */
.privacy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.privacy-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.privacy-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
    line-height: 1;
    padding: 0;
}

.privacy-modal-close:hover {
    background-color: #f5f5f5;
    color: #000;
}

.privacy-modal-body {
    padding: 3rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.privacy-modal-body h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #0857a0;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.privacy-modal-body h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #194860;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-modal-body p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.privacy-modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-modal-body li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Footer styles are in footer.css */

/* ====================
   RESPONSIVE ADAPTATIONS
   ==================== */

@media screen and (max-width: 90rem) {
    .backdrop-contacto {
        max-width: 100%;
    }
    
    .hero-section-contacto,
    .cards-section-contacto,
    .form-intro-section,
    .contact-form-section-contacto {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
    }
    
    .hero-section-contacto {
        margin-bottom: 0;
    }
    
    .cards-section-contacto {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
    }
    
    .interactive-card-contacto {
        width: 90%;
        max-width: 36.6875rem;
    }
    
    .form-intro-section {
        margin-top: 2rem;
    }
    
    .contact-form-section-contacto {
        margin: 2rem auto;
    }
}

@media screen and (max-width: 48rem) {
    .hamburger {
        display: block;
        width: 1.5625rem;
        height: 1.125rem;
        cursor: pointer;
    }
    
    /* Navigation styles are in navbar.css */
    
    .hero-title-contacto {
        font-size: clamp(2rem, 6vw, 3.75rem);
    }
    
    .card-title-contacto {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .card-text-contacto {
        font-size: clamp(0.875rem, 3.5vw, 1.125rem);
    }
    
    .text-bold {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .text-regular {
        font-size: clamp(0.875rem, 3.5vw, 1.25rem);
    }
    
    .form-title-contacto {
        font-size: clamp(2rem, 6vw, 3.75rem);
    }
    
    .form-intro-text {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .contact-form-section-contacto {
        padding: 3rem 2rem;
    }
}
