body {
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
    background-color: #fefcf8;
    color: #2b2b2b;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 40px;
    background-color: #fefcf8;
    position: relative;
}

/* === LOGO STYLES === */

.main-header .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-header .logo h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(20px, 4.5vw, 50px);
    color: #21788E;
    margin: 0;
    font-weight: 150;
    line-height: 1.1;
}

.main-header .logo h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(18px, 4vw, 45px);
    color: #21788E;
    margin: 0;
    font-weight: 150;
    padding-left: 3.6ch; /* adjusts h2 start to match after "Ivan " */
}

/* === RIGHT SIDE: RESERVE & IMG === */

.logo-reserve-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.logo-reserve-container .reserve {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(10px, 2vw, 22px);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.logo-reserve-container .reserve:hover {
    transform: scale(1.05);
}

.logo-img {
    width: clamp(50px, 10vw, 130px);
    height: clamp(50px, 10vw, 130px);
    border-radius: 50%;
    object-fit: cover;
}

.intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeSlideUp 2s ease-out;
    margin-top: -10px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: none;
    margin-top: -60px;
    animation: fadeSlideUp 2s ease-out;
}

.wave-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, #fefcf8 0%, rgba(254,252,248,0) 100%);
    pointer-events: none;
}

.profile-img {
    width: clamp(120px, 20vw, 230px);
    border-radius: 8px;
    flex: 0 0 auto;
    transition: transform 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.intro-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(16px, 2vw, 22px);
    max-width: 800px;
    flex: 1 1 300px;
    margin-left: auto;
    margin-right: auto;
}
/* Grid de servicios */
.services-grid {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fefcf8;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    justify-items: center;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilo de cada icono - inspirado en tu diseño */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 15px;
    background: #FFFDF8;
    border: 1px solid rgba(33, 120, 142, 0.2);
    box-shadow: 0 0 10px rgba(33, 120, 142, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 160px;
    width: 100%;
    max-width: 180px;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(33, 120, 142, 0.3);
    background: #ffffff;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #21788E, #4a9ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    color: #21788E;
    letter-spacing: -0.02em;
}

/* Modal styles - actualizado para coincidir */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    color: #95a5a6;
    float: right;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(149, 165, 166, 0.1);
}

.close:hover,
.close:focus {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

#modal-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0 auto 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
}

#modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

#modal-description {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6c7d;
    text-align: left;
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* Detailed info carousel styles */
.detailed-info-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid rgba(33, 120, 142, 0.1);
}

.carousel-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-button {
    background: #4a9ba2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: #21788E;
    transform: scale(1.1);
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.detail-counter {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    color: #21788E;
    font-weight: 600;
}

.detail-content {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#detail-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    color: #21788E;
    margin: 0 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #4a9ba2;
    padding-bottom: 8px;
}

#detail-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* Animaciones mejoradas */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(4px);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-32px) scale(0.96);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design mejorado */
@media (max-width: 768px) and (min-width: 481px) {
    .services-grid {
        padding: 30px 15px;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
        justify-items: center;
        max-width: 95%;
        margin: 0 auto;
        padding: 15px 10px;
    }
    
    .service-item {
        min-height: 110px;
        padding: 15px 10px;
        border-radius: 12px;
        max-width: 130px;
        width: 100%;
    }
    
    .service-item img {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .service-item h3 {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    #modal-title {
        font-size: 24px;
    }
    
    #modal-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .detailed-info-container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    #detail-subtitle {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    #detail-text {
        font-size: 14px;
    }
    
    .detail-content {
        min-height: 100px;
    }
}

/* Estilos específicos para modales en móvil */
@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        padding: 15px 12px;
        border-radius: 12px;
        width: 96%;
        max-width: 96%;
        max-height: 92vh;
        overflow-y: auto;
    }
    
    #modal-image {
        width: 50px;
        height: 50px;
        margin: 0 auto 12px;
        padding: 8px;
    }
    
    #modal-title {
        font-size: 18px;
        margin: 0 0 10px 0;
    }
    
    #modal-description {
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 15px 0;
    }
    
    .detailed-info-container {
        padding: 12px;
        margin-top: 12px;
        border-radius: 8px;
    }
    
    .carousel-navigation {
        margin-bottom: 12px;
    }
    
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .detail-counter {
        font-size: 11px;
    }
    
    #detail-subtitle {
        font-size: 15px;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: none; /* Quitar línea azul en móvil */
    }
    
    #detail-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .detail-content {
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        padding: 15px 8px 50px 8px; /* Más separación abajo para el widget de Doctoralia */
    }
    
    /* Ocultar wave-divider en móvil para mejor apariencia */
    .wave-divider {
        display: none;
    }
    
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-items: center;
        padding: 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hacer que el quinto elemento (Prevención) se centre pero mantenga su tamaño */
    .service-item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 8px;
        width: 100%; /* Mismo ancho que las otras */
        max-width: 160px; /* Mismo tamaño máximo que las otras tarjetas */
    }
    
    .service-item {
        min-height: 110px;
        padding: 14px 8px;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-item img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .service-item h3 {
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
        margin: 0;
    }
}

/* Estilo adicional para integración con Doctoralia */
.services-grid + .doctoralia-section {
    margin-top: 60px;
}

/* Mejoras de accesibilidad */
.service-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.modal-content:focus {
    outline: none;
}

/* Scrollbar personalizado para el modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background-color: #4a9ba2;
    color: #0E6990;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(16px, 2vw, 20px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(78, 150, 173, 0.3);
}

/* ✅ MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
    .intro {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px;
        gap: 10px;
        margin-top: -10px;
        flex-wrap: nowrap; /* prevent stacking */
    }

    .logo {
        margin-left: -30px;
    }

    .profile-img {
        width: 80px;
        height: auto;
        margin: 0;
        flex-shrink: 0;
        margin-left: -35px;
    }

    .intro-text {
        font-size: 10px;
        max-width: 65%;
        margin: 0;
        margin-left: 15px
    }

    .btn {
        font-size: 10px;
        padding: 4px 8px;
        margin-top: 8px;
        display: inline-block;
        text-align: center;
        margin-left: 0px;
    }

    .wave-divider {
        margin-top: 0;
        height: 40px;
    }
}


.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFDF8;
    padding: 40px;
    gap: 20px;
    text-align: center;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s ease;
}

.carousel.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel:hover {
    box-shadow: 0 0 10px rgba(33, 120, 142, 0.3);
}

.arrow {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    transition: transform 0.2s;
}

.arrow:hover {
    transform: scale(1.2);
}

.carousel-content {
    max-width: 600px;
}

.carousel-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .carousel {
        height: 100%;
        flex-direction: row;
        transform: translateY(30px); /* smaller slide for smaller screen */
        margin-top: -30px;
    }

    .arrow {
        font-size: 1.3rem;
    }

    .carousel-content {
        width: 140%;
        max-width: 140%;
        font-size: 8px;
    }

    .carousel-content .service-description {
        width: 100%;
    }

    .carousel-content img {
        width: 50px;
        height: 50px;
    }
}

body.modal-open #page-content {
    filter: blur(5px);
    pointer-events: none;
}

/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Ensure the Doctoralia modal widget is ready even when modal is hidden */
#doctoraliaModal {
    display: none; /* Hidden initially but widget can still load */
}

/* Preload the reservation widget in the background */
#zl-url-2 {
    display: block;
    min-height: 700px; /* Increased minimum height */
    width: 100%;
    margin-top: 40px;
    /* Widget loads even when modal is hidden */
}

/* Modal content */
.modal-content {
    max-height: 95vh; /* Increased height */
    overflow-y: auto; /* scroll if content too tall */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    background: white;
    border-radius: 10px;
    margin: 2% auto; /* Reduced margin for more space */
    width: 95%; /* Increased width */
    max-width: 1000px; /* Increased max-width for more space */
}

/* Close button */
.modal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000;
    color: #666;
}

.modal .close:hover {
    color: #000;
}

/* Custom certificate widget replacement */
.custom-certificate {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFDF8;
    padding: 2rem;
    border-radius: 15px;
    max-width: 250px;
    min-width: 200px;
    border: 1px solid rgba(33, 120, 142, 0.2);
    box-shadow: 0 0 10px rgba(33, 120, 142, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-certificate:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(33, 120, 142, 0.3);
}

.certificate-content {
    text-align: center;
    color: #21788E;
    font-family: 'Libre Baskerville', serif;
}

.certificate-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.certificate-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #21788E;
}

.certificate-content .title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #4a9ba2;
    font-style: italic;
}

.rating {
    margin-bottom: 15px;
}

.stars {
    color: #ffd700;
    font-size: 16px;
    margin-right: 5px;
}

.reviews {
    font-size: 12px;
    color: #666;
}

.view-profile-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4a9ba2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.view-profile-btn:hover {
    background-color: #21788E;
}

#zl-url-2 {
    display: block;
    min-height: 700px; /* Increased minimum height */
    width: 100%;
    margin-top: 40px;
}

/* Ensure Doctoralia widget has proper space */
#doctoraliaModal .modal-content {
    padding: 50px 20px 20px 20px;
    min-height: 750px; /* Increased minimum height */
}

/* Iframe for isolated widget */
#doctoralia-iframe {
    border: none;
    border-radius: 10px;
    background: white;
    width: 100%;
    height: 700px; /* Increased height */
    min-height: 700px;
}

@media (max-width: 600px) {
    .modal-content {
        max-height: 90vh;
        padding: 10px;
        margin: 5% auto;
        width: 95%;
    }

    .modal .close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    #zl-url-2 {
        min-height: 500px;
        margin-top: 30px;
    }
    
    #doctoraliaModal .modal-content {
        padding: 40px 15px 15px 15px;
        min-height: 450px;
    }
}

.presentation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap; /* allows wrapping if needed */
    padding: 2rem;
    text-align: center;
}

.presentation-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-img-container img {
    width: 100%;
    max-width: 250px; /* or whatever fits best */
    height: auto;
    border-radius: 15px;
}

.presentation-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFDF8;
    padding: 40px;
    border-radius: 30px;
    max-width: 250px;
    min-width: 100px;
    border: 1px solid rgba(33, 120, 142, 0.2);
    box-shadow: 0 0 10px rgba(33, 120, 142, 0.15);
    transition: transform 0.3s ease;
}

/* Add responsiveness */
@media (max-width: 900px) {
    .presentation {
        gap: 3rem;
    }

    .presentation-img-container img {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .presentation {
        flex-direction: column;
        gap: 2rem;
    }
}


.presentation-courses {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.presentation-carousel-courses {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFDF8;
    padding: 2rem;
    border-radius: 30px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    border: 1px solid rgba(33, 120, 142, 0.2);
    box-shadow: 0 0 10px rgba(33, 120, 142, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.presentation-carousel-courses:active {
    transform: scale(1.05);
}

/* Optional: More responsiveness for smaller screens */
@media (max-width: 768px) {
    .presentation-carousel,
    .presentation-carousel-courses {
        max-width: 90%;
        padding: 1.5rem;
    }

    .presentation {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .presentation {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1.5rem;
        text-align: center;
        margin-top: -100px;
    }

    .presentation-img-container img {
        max-width: 180px;
        border-radius: 10px;
    }

    .presentation-carousel {
        max-width: 90%;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .presentation-carousel-courses {
        padding: 1.5rem;
        max-width: 95%;
        margin: 10px auto;
        border-radius: 20px;
    }

    .presentation-courses {
        flex-direction: column;
        padding: 0.5rem;
    }
}

.main-footer {
    font-family: 'Libre Baskerville', serif;
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background-color: #f0f0f0;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    gap: 2rem;
}

/* Headings */
.main-footer h4,
.right-footer h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    color: #21788E;
}

/* Location section */
.location {
    flex: 1 1 250px;
    text-align: left;
    min-width: 200px;
}

/* Gallery images */
.main-footer .gallery img {
    width: 80px;
    margin: 5px;
    border-radius: 5px;
}

/* Footer logo container */
.footer-logo {
    text-align: center;
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    color: #21788E;
}

.footer-logo .logo-img-footer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.footer-logo-title h1 {
    margin-bottom: -20px;
    margin-right: 20px;
}

.footer-logo-title h2 {
    margin-left: 40px;
}

/* Right footer section */
.right-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1 1 250px;
    min-width: 200px;
    position: relative;
}

.right-footer p {
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    color: dimgray;
}

/* CONTACTO styles */
.contacto {
    display: flex;
    flex-wrap: wrap;
}

.right-footer .contacto-titulo {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -15px;
}

.contacto form {
    max-width: 600px;
    font-family: sans-serif;
    background: transparent;
    font-size: 0.75rem;
}

.contacto .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contacto .form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contacto label {
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.contacto input,
.contacto textarea {
    padding: 0.3rem;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    border-radius: 2px;
    background-color: #fff;
    outline: none;
}

.contacto input::placeholder,
.contacto textarea::placeholder {
    color: #aaa;
}

.contacto button {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: #4a9ba2;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contacto button:hover {
    background-color: #21788E;
}


/* From Uiverse.io by david-mohseni */
.wrapper {
    display: flex;
    list-style: none;
    width: 100%;
    font-family: "Poppins", sans-serif;
    justify-self: center;
    align-self: center;
}

.wrapper .icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
}

.icon.instagram a {
    color: inherit;
    text-decoration: none;
}

.icon.instagram a:visited {
    color: inherit;
}

/* From Uiverse.io by andrew-demchenk0 */
.phone {
    display: flex;
    justify-content: center;
    justify-self: center;
    align-self: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4a9ba2;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.phone:hover {
    background-color: #21788E;
    cursor: pointer;
}

#copy-message {
    margin-left: 5px;
    background-color: #4a9ba2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Libre Baskerville', serif;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1000;
}

#copy-message.show {
    opacity: 1;
}

.social{
    display: flex;
    flex-direction: row;
}

@media (max-width: 600px) {
    .main-footer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 20px;
        text-align: center;
    }

    .location,
    .footer-logo {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .right-footer {
        align-items: center !important;
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }


    .footer-logo-title h1,
    .footer-logo-title h2 {
        font-size: 1rem;
        margin: 0;
    }

    .footer-logo .logo-img-footer {
        width: 70px;
        height: 70px;
    }

    .main-footer .gallery img {
        width: 60px;
    }

    .right-footer p {
        font-size: 0.7rem;
    }

    .contacto {
        display: flex;
        flex-direction: column;
        align-self: center;
        align-items: center;
    }

    .contacto form {
        width: 100%;
        font-size: 0.75rem;
        margin: 0 auto;
    }

    .contacto .form-row {
        flex-direction: row;
    }

    .contacto-titulo {
        font-size: 1rem;
        display:flex;
        align-self: center;
        margin-bottom: 100px;
    }

    .contacto input,
    .contacto textarea {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .contacto button {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .wrapper .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .phone {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    #copy-message {
        font-size: 10px;
        padding: 6px 12px;
    }

}