/* Estilos unificados para Medilink Spain */

/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.logo h1 {
    color: #4ECDC4;
    font-size: 2.5rem;
    letter-spacing: 2px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
    letter-spacing: 3px;
}

main {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

/* Estilos para la navegación */
.main-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    color: #4ECDC4;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

/* Estilos para el footer */
footer {
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid rgba(78, 205, 196, 0.3);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #4ECDC4;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-section p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #4ECDC4;
    transform: translateX(3px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    color: #4ECDC4;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #3db1a8;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.copyright {
    color: #999;
    font-size: 0.8rem;
}

/* Estilos para el logo del footer */
.logo-footer {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.circle-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #4ECDC4;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.circle-logo span {
    color: #4ECDC4;
    font-size: 0.8rem;
    font-weight: bold;
}

.circle-logo:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Estilos para páginas de Tratamientos y Doctores */
.section-title {
    color: #4ECDC4;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* Estilos para las tarjetas de especialidades */
.especialidades-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.especialidad-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.especialidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.2);
}

.especialidad-image {
    height: 150px;
    overflow: hidden;
}

.especialidad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.especialidad-card:hover .especialidad-image img {
    transform: scale(1.05);
}

.especialidad-name {
    padding: 1rem;
    text-align: center;
    color: #4ECDC4;
    font-weight: 500;
}

/* Estilos para secciones de tratamientos y doctores */
.tratamientos-section,
.doctores-section {
    width: 100%;
    padding: 2rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ECDC4;
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(78, 205, 196, 0.1);
    transform: translateX(-5px);
}

.selected-especialidad-title {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-especialidad-title span {
    color: #4ECDC4;
    font-weight: 500;
}

/* Estilos para tarjetas de tratamientos */
.tratamientos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.tratamiento-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tratamiento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.2);
}

.tratamiento-nombre {
    color: #4ECDC4;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tratamiento-descripcion {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estilos para tarjetas de doctores */
.doctores-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.doctor-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.2);
}

.doctor-image {
    height: 200px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doctor-nombre {
    color: #4ECDC4;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.doctor-hospital {
    color: #666;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ESTILOS PARA PÁGINA PRINCIPAL ===== */

/* Estilos para el buscador */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
    position: relative;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:hover, .search-box:focus-within {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

#search-button, #clear-button {
    background: none;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#search-button:hover, #clear-button:hover {
    color: #4ECDC4;
}

/* Estilos para los resultados de búsqueda */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    overflow: hidden;
    display: none;
    z-index: 10;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.result-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background-color: #f9f9f9;
    color: #4ECDC4;
}

.result-item p {
    margin: 0;
}

/* Estilos para el contenedor principal */
.content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.image-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(78, 205, 196, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(78, 205, 196, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.tagline {
    margin-top: 2rem;
    color: #666;
    font-weight: 300;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

/* ===== ESTILOS PARA PÁGINA DE HOSPITALES ===== */

/* Estilos para el contenedor principal */
.hospitales-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-title {
    color: #4ECDC4;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

/* Estilos para las tarjetas de ciudades */
.cities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.city-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.city-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.1);
}

.city-name {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #333;
    background-color: white;
    margin: 0;
}

/* Estilos para la sección de hospitales */
.hospitals-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    width: 100%;
}

.hospitals-section.active {
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ECDC4;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(78, 205, 196, 0.1);
    transform: translateX(-5px);
}

.selected-city-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

#city-name {
    color: #4ECDC4;
    font-weight: 500;
}

/* Estilos para el Swiper de hospitales */
.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.hospital-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.swiper-slide {
    height: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.swiper-slide h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.swiper-slide p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hospital-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hospital-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hospital-image-container:hover img {
    transform: scale(1.05);
}

.hospital-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hospital-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.hospital-address {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: auto;
}

.hospital-address i {
    color: #4ECDC4;
    margin-top: 3px;
}

/* Personalización de los controles de Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #4ECDC4;
}

.swiper-pagination-bullet-active {
    background-color: #4ECDC4;
}

/* ===== ESTILOS PARA PÁGINA DE INFORMACIÓN ===== */

/* Estilos para el contenedor del formulario */
.form-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
}

.form-title {
    color: #4ECDC4;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* Estilos para el formulario */
.info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.file-upload,
.form-group:nth-last-child(2),
.form-group:nth-last-child(3),
.form-actions {
    grid-column: span 2;
}

label {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

input, textarea, select {
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

textarea {
    resize: vertical;
}

/* Estilos para la carga de archivos */
.file-upload-container {
    position: relative;
    margin-bottom: 0.5rem;
}

input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    background-color: #eee;
    border-color: #4ECDC4;
    color: #4ECDC4;
}

.file-names {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.file-help {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Estilos para los botones */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-btn, .reset-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn {
    background-color: #4ECDC4;
    color: white;
}

.reset-btn {
    background-color: #f5f5f5;
    color: #555;
}

.submit-btn:hover {
    background-color: #3dbeb6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.reset-btn:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

/* Estilos para mensajes de validación */
.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

input.error, textarea.error {
    border-color: #e74c3c;
}

/* Estilos para mensaje de éxito */
.success-message {
    text-align: center;
    color: #2ecc71;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: rgba(46, 204, 113, 0.1);
    animation: fadeIn 0.5s ease;
}

/* Estilos para el footer */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.copyright {
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .search-container {
        max-width: 90%;
    }
    
    .image-container {
        max-width: 90%;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cities-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }
    
    .city-image {
        height: 140px;
    }
    
    .hospital-card {
        height: 350px;
    }
    
    .hospital-image {
        height: 200px;
    }
    
    .info-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.file-upload,
    .form-group:nth-last-child(2),
    .form-group:nth-last-child(3),
    .form-actions {
        grid-column: span 1;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    #search-input {
        padding: 0.8rem 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .circle-logo {
        width: 80px;
        height: 80px;
    }
    
    .cities-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .city-image {
        height: 120px;
    }
    
    .city-name {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .hospital-card {
        height: 320px;
    }
    
    .hospital-image {
        height: 180px;
    }
    
    .hospital-info {
        padding: 1rem;
    }
    
    .hospital-name {
        font-size: 1rem;
    }
}