/****************************************************
 * 1. FUENTES
 ****************************************************/
/* NeueHaasGroteskTXPro Bold (75Bd) -> font-weight: 700 */
/****************************************************
 * 2. RESETEO Y BASE
 ****************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
}

/****************************************************
 * 3. CABECERA (HEADER)
 ****************************************************/
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 10px 0;
}

.header-container {
    margin: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    margin-right: 8px;
}

.logo-text {
    font-size: 1.2rem;
    color: #4d4d4d;
    line-height: 1.2;
}

/****************************************************
 * 4. NAVEGACIÓN
 ****************************************************/
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

.nav-menu li {
    margin-right: 15px;
}

.nav-link {    
    font-size: 1rem;    
    margin: 0 1rem;   
    display: inline-block;
    background-color: #fff;
    border: 1px solid #2b5f2b;
    color: #2b5f2b;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-link.active {
    color: #2b5f2b;
    /* Verde */
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Opción con fondo azul */
.nav-link.highlighted {
    background-color: #cce0ff;
    border-radius: 4px;
}

/* Efecto hover */
.nav-link:hover {
    background-color: #eaeaea;
}

.btn-quote {
    display: inline-block;
    background-color: #2b5f2b;
    color: #fff;
    padding: 8px 37px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-quote:hover {
    background-color: #FCC13B;
}

/****************************************************
 * 5. MAIN (contenido principal)
 ****************************************************/
main {
    font-family: Arial, sans-serif;
    /* O la familia que prefieras */
    padding: 20px;
}

.main-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 110px;
    /* Para compensar el header fijo */
    padding: 2rem 0 0 4rem;
    /* Ajusta según tu diseño */
    background: #F4F8F7 0% 0% no-repeat padding-box;
}

/* Texto dentro de la sección principal */
.main-content {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.main-content h1 {
    font-family: 'NeueHaasGroteskTXPro', sans-serif;
    font-weight: 700;
    color: #4D4D4D;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.main-content .highlight {
    color: #196733;
    /* Amarillo / dorado */
    font-weight: 700;
}

.subtitle {
    font-family: 'NeueHaasGroteskTXPro', sans-serif;
    font-weight: 400;
    color: #4C4C4C;
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* Imagen dentro de la sección principal */
.main-image {
    flex: 1;
    display: flex;
    justify-content: end;
    align-items: center;
    min-width: 300px;
}

.main-image img {
    max-width: 75%;
    height: auto;
    margin-left: 4rem;
}

/****************************************************
 * 6. SECCIÓN DE SERVICIOS
 ****************************************************/
.services-container {
    margin: 0 auto;
    padding: 4rem;
}

.services-container .highlight {
    color: #196733;
    font-weight: 700;
}

.services-grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-item {
    width: 320px;
    text-align: center;
    border-radius: 8px;
    padding: 1.5rem;
}

.service-item img {
    width: 220px;
    margin-bottom: 1rem;
}

.service-item h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #196733;
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #000000;
}

/****************************************************
 * 7. SECCIÓN DE RESGUARDO
 ****************************************************/
.organiza-section {
    background-color: #196733;
    padding: 3rem 1rem;
}

.organiza-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.organiza-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 auto 3rem;
    max-width: 720px;
}

.organiza-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}

.feature-item {
    max-width: 320px;
    text-align: center;
    margin: 1rem 0;
}

.feature-item img {
    height: 100px;
    margin-bottom: 2rem;
}

.feature-item p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
}

.tarifas-section {
    display: flex;
    flex-wrap: wrap;
}

.tarifas-left {
    background-color: #CBE6DB;
    color: #196733;
    flex: 1;
    padding: 0rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.tarifas-left h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 5rem;
    max-width: 450px;
}

.tarifas-left-imagen {
    display: flex;
}

.tarifas-left p {
    font-size: 1rem;
    max-width: 400px;
}

/* Alinear la caja a la derecha */
.box-img {
    align-self: flex-end;
    max-width: 250px;
    height: auto;
}

/* Columna derecha */
.tarifas-right {
    flex: 1;
}

.racks-img {
    width: 100%;
    height: 100%;
    display: block;
}

/****************************************************
 * 8. FOOTER
 ****************************************************/

.footer-contact a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.main-footer {
    background-color: #064C23;
    /* El verde que prefieras */
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 2rem 6rem; */
    flex-direction: column;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    width: 90%;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 120px;
    margin-right: 1rem;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 450px;
}

.footer-contact h3 {
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    text-align: left;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-contact li .footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.footer-contact li span {
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.3); */
    background-color: #CBE6DB;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    /* Ajusta según tu diseño */
    color: #196733;
}

/* Enlaces o spans clicables en el footer */
.footer-bottom a,
.footer-bottom span {
    color: #196733;
    /* Mantener el color blanco */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

/****************************************************
 * 9. SECCIÓN MAPA
 ****************************************************/
.map-section {
    display: flex;
    flex-wrap: wrap;
    background: #F5F7FA;
    padding: 5rem 3rem 2rem;
    gap: 2rem;
}

.map-container {
    flex: 1;
    max-width: 450px;
    min-height: 450px;
    max-height: 450px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

div#map {
    width: 450px;
    height: 450px;
}

.map-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    color: #064C23;
}

.map-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #196733;
}

.map-info h3 {
    color: inherit;
    margin-bottom: 2rem;
}

.map-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #196733;
}

.icon-location {
    width: 20px;
    height: auto;
    margin-right: 0.5rem;
}

.location-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-line p {
    margin-bottom: 0;
}

/****************************************************
 * SECCIÓN DE CONTACTO
 ****************************************************/
.contact-section {
    padding: 2rem;
    background-color: #F5F7FA;
}

.contact-container {
    margin: 0 auto;
    text-align: center;
    padding: 3rem 8rem;
}

/* Contenedor con fondo blanco y box-shadow */
.form-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 4rem 6rem;
    text-align: left;
}

.form-box h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.form-box p {
    margin-bottom: 2rem;
    color: #555;
    text-align: center;
}

/* Formulario en grid de 2 columnas por defecto */
#contactForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Grupo de formulario */
.form-group {
    display: flex;
    flex-direction: column;
    margin: 0rem 0.5rem;
}

/* Labels */
label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Inputs */
input[type="text"],
input[type="email"] {
    background-color: #cbe6db8a;
    border: 1px solid #eeeeee;
    padding: 0.5rem;
    font-size: 1rem;
}

/* Textarea */
textarea {
    background-color: #cbe6db8a;
    border: 1px solid #eeeeee;
    padding: 0.5rem;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    grid-column: 1 / 3;
    font-family: inherit;
}

/* Botón de envío */
button[type="submit"] {
    grid-column: 1 / 3;
    padding: 0.75rem;
    background-color: #196733;
    color: #fff;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin: 1rem auto;
    min-width: 250px;
}

button[type="submit"]:hover {
    background-color: #FCC13B;
}

/****************************************************
 * 10. MEDIA QUERIES
 ****************************************************/

/* A) Para pantallas de hasta 600px */
@media (max-width: 600px) {
    .header-container {
        margin: 0 3rem;
    }

     .nav-menu {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .nav-menu ul {
        margin: 0;
    }

    .nav-menu li {
        margin-bottom: 0px;
    }

    .main-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1rem 0rem 1rem;
    }

    .main-content {
        margin-bottom: 1.5rem;
    }

    .main-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .main-image img {
        max-width: 80%;
        height: auto;
    }

    .services-container {
        padding: 2rem;
    }

    .services-container h2 {
        font-size: 1.5rem;
    }

    .organiza-container h2 {
        font-size: 1.5rem;
    }

    .organiza-features {
        gap: 2rem;
    }

    .feature-item img {
        height: 48px;
        margin-bottom: 1.5rem;
    }

    .tarifas-left p {
        margin-bottom: 2rem;
    }

    .tarifas-left-imagen {
        display: flex;
        /* flex-direction: column; */
    }

    .map-section {
        padding: 5rem 2rem 2rem;
    }

    div#map {
        width: 320px;
        height: 320px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-logo-img {
        height: 90px;
        margin-right: 0rem;
    }

    .footer-logo-text {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-contact h3 {
        margin-bottom: 1.2rem;
        font-size: 1.2rem;
    }

    .footer-contact li {
        margin-bottom: 1.2rem;
    }

    .footer-contact li span {
        font-size: 1rem;
    }

    .contact-container {
        padding: 0;
    }

    #contactForm {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        margin: 0 auto;
        width: 100%;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        width: 100%;
        padding: 0.7rem;
    }

    textarea {
        grid-column: auto;
    }

    .form-box {
        padding: 2rem 1rem;
    }
}

/* B) Para pantallas de hasta 768px */
@media (max-width: 768px) {

    div:where(.swal2-container).swal2-center>.swal2-popup {
        width: 100% !important
    }

    .header-container {
        margin: 0 1rem 0 0;
    }

    .nav-menu {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .nav-menu ul {
        margin: 0;
    }

	.nav-menu li {
        margin-right: 0px;
    }

    .services-grid {
        gap: 0rem;
    }

    .map-info h3 {
        margin-bottom: 1rem;
    }

    .service-item img {
        width: 150px;
        margin-bottom: 0.2rem;
    }

    .logo-img {
        height: 70px;
        margin-right: 8px;
        margin-left: 1rem;
    }

    .main-section {
        flex-direction: column;
        text-align: center;
        margin-top: 90px;
    }

    .main-content,
    .main-image {
        margin-right: 0;
        /* margin-bottom: 20px; */
    }

    .main-footer {
        flex-direction: column;
        text-align: center;
        /* padding: 2rem; */
    }

    .tarifas-section {
        flex-direction: column;
    }



    .tarifas-left {
        padding: 1.5rem 2rem 0;
    }

    .tarifas-left,
    .tarifas-right {
        flex: 0 0 100%;
        /*text-align: center;*/
    }

    .tarifas-left h2 {
        margin-top: 1rem;
    }

    .tarifas-left p {
        margin-bottom: 2rem;
    }

    .tarifas-left-imagen {
        display: flex;
        /* flex-direction: column; */
    }

    .box-img {
        max-width: 150px;
        margin: 0 auto;
        align-self: center;
    }

    .map-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .map-container {
        max-width: 350px;
        min-height: 300px;
        max-height: 350px;
        margin-bottom: 1rem;
    }

    div#map {
        width: 320px;
        height: 320px;
    }

    .map-info {
        max-width: 100%;
        text-align: center;
    }

    .location-line p {
        text-align: left;
    }

    .location-line p br {
        display: none;
    }

    .map-info h2 {
        font-size: 1.5rem;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 1rem;
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .contact-section {
        padding: 1rem;
    }
}

/* A partir de 1440px: centramos el contenido con padding dinámico */
@media (min-width: 1480px) {

    .main-section,
    .services-container,
    .organiza-section,
    .map-section,
    .contact-section {
        padding-left: calc((100% - 1480px) / 2);
        padding-right: calc((100% - 1480px) / 2);
    }

    .tarifas-left {
        padding-left: calc(50% - 740px);
    }

    .box-img {
        max-width: 320px;
    }

    .header-container {
        margin: 0 calc((100% - 1480px) / 2);
    }

}

/* Ajustes específicos para tablets: 768px a 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-content h1 {
        font-size: 2rem;
    }

    .main-section {
        padding: 3rem 4rem 0rem 4rem;
    }

    .services-content.animate-fadeInLeft {
        max-width: 70%;
    }

    .services-grid {
        gap: 0rem;
    }

    .organiza-container h2 {
        max-width: 75%;
        margin: 3rem auto;
    }

    .tarifas-section {
        flex-direction: row;
    }

    .tarifas-left,
    .tarifas-right {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: center;
    }

    .racks-img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .tarifas-left {
        padding: 2rem 1rem 0rem 2rem;
        text-align: left;
    }

    .tarifas-left h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .racks-img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .box-img {
        max-width: 175px;
    }

    .map-container {
        max-width: 350px;
        min-height: 300px;
        max-height: 350px;
        margin-bottom: 1rem;
    }

    div#map {
        width: 320px;
        height: 320px;
    }

    .map-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .map-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .map-info h3 {
        color: #196733;
        margin-bottom: 1.5rem;
    }

    .contact-container {
        padding: 3rem 2rem;
    }

    .location-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
    }

    .form-box {
        padding: 4rem 2rem;
    }

    .footer-contact {
        max-width: 350px;
    }
}

/****************************************************
 * 12. ANIMACIONES PARA SCROLL
 ****************************************************/

/* Establecer opacidad 0 para los elementos que se animarán */
.main-content,
.main-image,
.services-content,
.service-item,
.organiza-container,
.tarifas-left,
.tarifas-right,
.map-container,
.map-info,
.form-box {
    opacity: 0;
}

/* Keyframes y clases de animación */

/* FadeInUp */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 500ms ease-out forwards;
}

/* Fade In Left */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInLeft {
    animation: fadeInLeft 500ms ease-out forwards;
}

/* Fade In Right */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInRight {
    animation: fadeInRight 500ms ease-out forwards;
}

/* Zoom In */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoomIn {
    animation: zoomIn 500ms ease-out forwards;
}

/* Rotate In */
@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-15deg);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

.animate-rotateIn {
    animation: rotateIn 500ms ease-out forwards;
}

/****************************************************
 * BOTÓN FLOTANTE DE WHATSAPP
 ****************************************************/
.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 11px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 90px;
    height: 90px;
}

.aviso-privacidad-modal {
    text-align: left !important;
}

/* Animación de entrada */
.swal2-show {
    animation: fadeIn 0.5s ease-out !important;
}

/* Animación de salida */
.swal2-hide {
    animation: fadeOut 0.3s ease-in !important;
}

/* Definición de keyframes para fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Definición de keyframes para fadeOut */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}