/* Section 1: Contact Hero */
.contact-hero {
    background-color: #fff;
    width: 100%;
    min-width: 320px;
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 20px;
    overflow-x: hidden;
}

.hero-banner-container {
    width: 100%;
    max-width: 1752px;
    height: auto;
    min-height: 400px;
    background-image: url('../images/contact-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.contact-hero .contact-icon-large {
    margin-bottom: 24px;
}

.contact-hero .contact-icon-large svg {
    width: 80px;
    height: 72px;
    color: #000;
    stroke-width: 1.5;
}

.contact-hero .contact-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #111;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 0 10px;
    word-wrap: break-word;
}

.text-bold {
    font-weight: 700;
}

.text-green {
    color: #25794F;
    /* Using the project green */
}

.contact-hero .contact-title .text-green {
    font-size: 1.85rem;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 120px;
    height: auto;
    white-space: nowrap;
}

/* Email button */
.btn-contact:first-child {
    width: auto;
    min-width: 120px;
}

/* WhatsApp button */
.btn-contact:last-child {
    width: auto;
    min-width: 140px;
}

.btn-contact:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Section 2: Operations Center */
.operations-section {
    background-color: #BCBCBC;
    /* Darker gray like in reference image */
    position: relative;
    padding: 40px 20px;
    min-height: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 320px;
    box-sizing: border-box;
}

.operations-section .container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.operations-title {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    left: 0;
    top: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.2;
    display: flex;
    align-items: flex-end;
    color: #000000;
    margin: 0 0 30px 0;
    text-align: center;
    padding: 0 10px;
    word-wrap: break-word;
}

.operations-title .text-green {
    font-weight: 700;
    /* Bold for "operaciones" */
}

/* Flex Layout for Content */
.operations-content {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

/* Left Info Card (Frame) */
.info-card {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    left: 0;
    top: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    z-index: 10;
    padding: 24px;
}

/* Frame 295: Inner Content */
.info-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: none;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 60px;
    height: 60px;
    stroke-width: 1;
    /* Stronger Stroke for icons */
    color: #000;
}

.info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    flex: 1;
    height: auto;
}

.info-text h3 {
    margin: 0 0 8px 0;
    width: 100%;
    height: auto;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #101828;
    flex: none;
    word-wrap: break-word;
}

.text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    height: auto;
    gap: 4px;
}

.info-text p {
    margin: 0;
    width: 100%;
    height: auto;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.02px;
    color: #364153;
    word-wrap: break-word;
}

/* Right Map Area (mapa) */
.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
    min-height: 300px;
    left: 0;
    top: 0;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (min-width: 768px) {
    .contact-hero {
        padding: 60px 40px;
    }

    .hero-banner-container {
        padding: 50px 40px;
        min-height: 500px;
    }

    .contact-hero .contact-icon-large svg {
        width: 120px;
        height: 108px;
    }

    .contact-hero .contact-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .contact-hero .contact-title .text-green {
        font-size: 2.75rem;
    }

    .contact-buttons {
        gap: 40px;
        margin-top: 50px;
    }

    .btn-contact {
        font-size: 20px;
        padding: 14px 28px;
        min-width: 140px;
    }

    .operations-section {
        padding: 60px 40px;
    }

    .operations-title {
        font-size: 2.5rem;
        text-align: left;
        margin-bottom: 40px;
        padding: 0;
    }

    .operations-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .info-card {
        flex: 1;
        max-width: 50%;
        padding: 32px;
    }

    .info-icon {
        width: 80px;
        height: 80px;
    }

    .info-icon svg {
        width: 80px;
        height: 80px;
    }

    .info-text h3 {
        font-size: 28px;
    }

    .info-text p {
        font-size: 18px;
    }

    .map-container {
        flex: 1;
        max-width: 50%;
        height: 400px;
        border-radius: 24px;
    }
}

@media (min-width: 1025px) {
    .contact-hero {
        height: 920px;
        padding: 0;
    }

    .hero-banner-container {
        width: 1752px;
        height: 706px;
        padding: 40px;
    }

    .contact-hero .contact-icon-large {
        margin-bottom: 32px;
    }

    .contact-hero .contact-icon-large svg {
        width: 166.69px;
        height: 149.67px;
    }

    .contact-hero .contact-title {
        font-size: 64px;
        margin-bottom: 40px;
    }

    .contact-hero .contact-title .text-green {
        font-size: 70px;
    }

    .contact-buttons {
        gap: 128px;
        margin-top: 82px;
    }

    .btn-contact {
        font-size: 32px;
        padding: 0;
    }

    .btn-contact:first-child {
        width: 125px;
        height: 55px;
    }

    .btn-contact:last-child {
        width: 206px;
        height: 55px;
    }

    .operations-section {
        padding: 0;
        min-height: 920px;
    }

    .operations-section .container {
        height: 920px;
    }

    .operations-title {
        position: absolute;
        width: 1366px;
        height: 76px;
        left: 51px;
        top: 50px;
        font-size: 70px;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    .operations-content {
        position: relative;
        width: 100%;
        height: 100%;
        flex-direction: row;
        gap: 0;
    }

    .info-card {
        position: absolute;
        width: 733px;
        height: 317px;
        left: 51px;
        top: 339px;
        padding: 0;
        max-width: none;
    }

    .info-card-inner {
        position: absolute;
        width: 646px;
        height: 244px;
        left: calc(50% - 646px/2 + 0.5px);
        top: calc(50% - 244px/2 + 0.4px);
    }

    .info-item {
        width: 646px;
        height: 110px;
        gap: 24px;
    }

    .info-icon {
        width: 100px;
        height: 100px;
    }

    .info-icon svg {
        width: 100px;
        height: 100px;
    }

    .info-text {
        width: 490px;
        height: 110px;
    }

    .info-text h3 {
        font-size: 36px;
        height: 44px;
    }

    .text-group {
        width: 490px;
        height: 66px;
        gap: 0;
    }

    .info-text p {
        font-size: 22px;
        width: 490px;
        height: 33px;
    }

    .map-container {
        position: absolute;
        width: 1037px;
        height: 643px;
        left: 834px;
        top: 176px;
        max-width: none;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 30px 15px;
    }

    .hero-banner-container {
        padding: 25px 15px;
        min-height: 350px;
    }

    .contact-hero .contact-icon-large svg {
        width: 60px;
        height: 54px;
    }

    .contact-hero .contact-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .contact-hero .contact-title .text-green {
        font-size: 1.65rem;
    }

    .contact-buttons {
        gap: 15px;
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
    }

    .btn-contact {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }

    .operations-section {
        padding: 30px 15px;
    }

    .operations-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon svg {
        width: 50px;
        height: 50px;
    }

    .info-item {
        gap: 12px;
    }

    .info-text h3 {
        font-size: 18px;
    }

    .info-text p {
        font-size: 13px;
    }

    .map-container {
        height: 250px;
    }
}

@media (max-width: 320px) {
    .contact-hero {
        padding: 20px 12px;
    }

    .hero-banner-container {
        padding: 20px 12px;
        min-height: 300px;
    }

    .contact-hero .contact-title {
        font-size: 1.3rem;
    }

    .contact-hero .contact-title .text-green {
        font-size: 1.45rem;
    }

    .operations-section {
        padding: 25px 12px;
    }

    .operations-title {
        font-size: 1.3rem;
    }

    .info-card {
        padding: 16px;
    }

    .map-container {
        height: 200px;
    }
}

/* Modal Contacto */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: 'Open Sans', sans-serif;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.modal-input,
.modal-textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: #f3f4f6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.modal-input::placeholder,
.modal-textarea::placeholder {
    color: #9ca3af;
}

.modal-textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.btn-modal {
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #333;
}

.btn-modal-cancel:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-modal-submit {
    background-color: #25794F;
    border: 1px solid #25794F;
    color: #fff;
}

.btn-modal-submit:hover {
    background-color: #1f6a3f;
    border-color: #1f6a3f;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-modal {
        width: 100%;
    }
}