/* Variables de color */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: var(--text);
}

.wrapper {
    width: 75%;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* Encabezado */
.header {
    text-align: center;
    padding: 0px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
    border-radius: 5px;
    margin: -10px;
}


/* Menú de navegación */
.nav {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 12px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
    margin: 15px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0 12px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Barra de búsqueda */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-container input {
    width: 100%;
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
    outline: none;
}

/* Contenido principal */
.content {
    display: flex;
    margin-top: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 20px;
}

.leftcolumn {
    flex: 1;
    min-width: 250px;
}

.rightcolumn {
    flex: 2;
}

/* Cajas y artículos */
.box, .article, .service-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.box:hover, .article:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.box h3 {
    margin-top: 0;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.box a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

.box a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Títulos */
h2 {
    font-weight: 600;
    color: var(--secondary);
    position: relative;
    padding-bottom: 15px;
    margin-top: 0;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* Tarjetas de servicio */
.service-card {
    text-align: center;
    border-top: 3px solid var(--primary);
    cursor: pointer;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Mapa */
.map-container {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contacto */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.contact-info a {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Pie de página */
.footer {
    text-align: center;
    padding: 25px 0;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: white;
    margin-top: 30px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: white;
    margin: 0 12px;
    font-size: 1.5em;
    transition: all 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list li {
        margin: 5px 0;
    }
    
    
    
    .box, .article, .service-card {
        padding: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 15px;
        width: 95%;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-list a {
        padding: 8px 12px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
}