.container-contacto {
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
    background-color: white;
    max-width: 1550px;
}

.tramites {
    color: #000000 !important;
    font-size: 4rem;
    text-align: center;
}

section.header1 {
    background-color: white !important;
    padding: 1.875rem 0rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.faq-section {
    display: flow !important;
}

.faq-header {
    position: relative;
    top: 9.625rem;
    /* left: 3.125rem !important; */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    margin-left: 140px;
    /* 🔴 rompe en responsive */
}


.form-section {
    background: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    background-color: #e9ecef;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    height: 7.5rem;
    resize: vertical;
    font-family: inherit;
}

.submit-btn {
    background-color: #991815;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.25rem;
    position: relative;
    left: 77%;
}

.submit-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-info {
    padding-left: 1.25rem;
    background: #e9ecef;
    width: 80%;
    padding: 5%;
    border-radius: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    min-width: 1.5rem;
}

.contact-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.contact-content p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
}

.contact-content p a {
    color: #000000;
    text-decoration: none;
    line-break: anywhere;
}

.contact-content p a:hover {
    color: #991915;
    text-decoration: underline;
}

.faq-answer a {
    color: #991915;
    text-decoration: none;
}

.faq-answer a:hover {
    color: #000000;
    text-decoration: underline;
}

/* .contact-item.phone .contact-content h3 {
    color: #dc3545;
}
 */
.hours-list {
    list-style: none;
    margin-top: 0.5rem;
}

.hours-list li {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.hours-list li::before {
    content: "•";
    color: #000000;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3.125rem;
    }

    .contact-info {
        width: auto;
    }
}

@media (max-width: 768px) {
    .container-contacto {
        padding: 1rem;
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-wrapper {
        gap: 2.5rem;
         margin-left: 0;
    }

    .form-group input,
    .form-group textarea {
        margin: -0.125rem 1rem;
        font-size: 1rem;
        width: 80%;
        position: relative;
        left: 10%;
    }

    .contact-content p #emailLink {
        line-break: anywhere
    }

    .contact-info {
        padding: 10%;
    }


}

@media (max-width: 480px) {
    .tramites {
        font-size: 2.125rem;
    }

    .container-contacto {
        padding: 0px 0px;
        /* background: yellow; */
        display: flex;
        flex-direction: row-reverse;
    }

    .submit-btn {
        width: 100%;
        padding: 1.125rem;
        width: 80%;
        padding: 1.125rem;
        position: relative;
        left: 15%;
    }
}

/* Animation for form submission */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Map Section Styles */
.map-section {
    margin: 5rem 0 3.75rem 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container {
    width: 100%;
    height: 25rem;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Section Styles */
.faq-section {
    background-color: white !important;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    align-items: start;
}

.faq-header h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
}

.faq-list>*:not(:last-child) {
    margin-bottom: 16px;
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #dc3545;
}

.faq-toggle {
    font-size: 1.25rem;
    font-weight: bold;
    color: #dc3545;
    transition: transform 0.3s ease;
    min-width: 1.5rem;
    text-align: center;
}

.faq-answer {
    padding-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.6;
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for new sections */
@media (max-width: 968px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-section {
        padding: 2.5rem 1.875rem;
    }

    .map-container {
        height: 18.75rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 1.875rem 1.25rem;
    }

    .faq-header h2 {
        font-size: 1.8rem;
    }

    .map-section {
        margin: 3.75rem 0 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .faq-header h2 {
        font-size: 1.5rem;
    }

    .faq-section {
        padding: 1.5625rem 0.9375rem;
    }
}