* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
  overflow-x: hidden; /* ok */
  scroll-behavior: smooth; /* para scroll suave */
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* HEADER RESPONSIVE - COLOR IGUAL AL FOOTER */
header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Mismo color que el footer */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

header img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #93c5fd;
}

ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

ul li {
    list-style: none;
    margin-left: 20px;
    margin-top: 10px;
}

ul li a {
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

ul li a:hover {
    background-color: #ececec;
    color: #1e3a8a;
}

/* PORTADA RESPONSIVE - COMO ESTABA ORIGINALMENTE */
aside {
    display: flex;
    width: 100%;
    height: 90vh;
    background-image: url("/img/portada.jpg");
    background-size: cover;
    background-position: center;
    align-items: center;
    background-repeat: no-repeat;
}

.sub-portada {
    text-align: center;
    align-items: center;
    width: 100%;
    height: 90vh;
    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.753); /* Como estaba originalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* BOTÓN DEL ASIDE CORREGIDO */
.sub-portada .button {
    color: whitesmoke;
    background-color: #4c94f1; /* Color original del botón */
    padding: 0.6em;
    border-radius: 10px; /* Bordes como original */
    text-decoration: none;
    text-align: center;
    align-items: center;
    width: 200px;
    height: 45px;
    margin-top: 2.3em;
    border: none; /* Sin borde como original */
    cursor: pointer;
    font-weight: normal; /* Peso normal como original */
    font-size: 1em; /* Tamaño original */
    transition: all 0.3s ease;
}

.sub-portada .button:hover {
    background-color: #1e6fd8; /* Color hover más oscuro */
    transform: translateY(-2px);
}

.sub-portada h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3em;
    color: #93c5fd;
    margin-bottom: 0.5em;
}

.sub-portada h2 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2em;
    color: whitesmoke;
    margin-top: 10px;
}

/* NOSOTROS RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.nosotros {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.nosotros-info {
    text-align: center;
    width: 50%;
    height: 500px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nosotros-info h3 {
    font-size: 3em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 0.5em;
    color: #93c5fd;
}

.nosotros-info b {
    font-size: 1.5em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #e2e8f0;
    line-height: 1.6;
}

.nosotros-img {
    background-image: url("/img/reparaciones/sobrenosotros.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 50%;
    height: 500px;
    position: relative;
}

.nosotros-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.3), rgba(147, 197, 253, 0.3));
}

/* SERVICIOS RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.servicios {
    text-align: center;
    padding: 20px;
    background-color: #f1f5f9;
}

.servicios h3 {
    font-size: 3em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 1.5em;
    margin-bottom: 1em;
    color: #1e3a8a;
}

.info-server {
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.info-server div {
    border: 2px solid #3b82f6;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 15px;
    width: 345px;
    height: auto;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.info-server div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.info-server div h4 {
    font-size: 1.5em;
    margin-top: 1em;
    margin-bottom: 1em;
    color: white;
}

.info-server div h4 i {
    color: #1e3a8a;
    margin-left: 10px;
}

/* MUESTRAS ANTES/DESPUÉS RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.muestras {
    background-color: white;
    padding: 40px 20px;
}

.muestras h3 {
    margin: 30px 0;
    font-size: 2em;
    color: #1e3a8a;
}

.muestra-1, .muestra-2, .muestra-3, .muestra-4 {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

figure {
    max-width: 500px;
    padding: 0.8em;
    border-radius: 15px;
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    flex: 1 1 300px;
    min-width: 250px;
    transition: all 0.3s ease;
}

figure:hover {
    transform: scale(1.02);
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

figcaption {
    color: white;
    margin-top: 0.8em;
    font-size: 1.2em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
}

/* REPARACIONES RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.reparaciones {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    background-color: #f1f5f9;
}

.reparaciones figure {
    flex: 1 1 400px;
    max-width: 500px;
    background: linear-gradient(135deg, #3b82f6 0%, #93c5fd 100%);
    border: 2px solid #1e3a8a;
}

.reparaciones figure img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.reparaciones figcaption {
    color: #1e3a8a;
    background-color: white;
    margin: 0;
    padding: 15px;
    border-radius: 0 0 13px 13px;
}

/* COMENTARIOS RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.comentar {
    background-color: white;
    padding: 40px 20px;
}

.comentarios {
    display: flex;
    justify-content: space-around;
    margin-top: 2em;
    flex-wrap: wrap;
    gap: 20px;
}

.head {
    display: flex;
    text-align: start;
    align-items: center;
}

.comentario {
    text-align: center;
    padding: 1.5em;
    border: 2px solid #cbd5e1;
    height: auto;
    min-height: 230px;
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
}

.comentario:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.estrellas i {
    color: #f59e0b;
    font-size: 20px;
    margin-right: 2px;
}

.usuario {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border: 2px solid #3b82f6;
}

h4 {
    margin-top: 1em;
    text-align: center;
    font-size: 2em;
    padding: 0 10px;
    color: #1e3a8a;
}

/* FORMULARIO RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
.formulario {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    padding: 0 20px;
    background-color: #f1f5f9;
    padding: 40px 20px;
}

form {
    display: inline-block;
    text-align: center;
    border: 2px solid #3b82f6;
    padding: 2em;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    width: 100%;
    max-width: 500px;
}

form label {
    font-weight: bold;
    color: #93c5fd;
    font-size: 1.1em;
}

input {
    height: 40px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1.5em;
    padding: 0 15px;
    border: 2px solid #93c5fd;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.3);
}

form button {
    height: 45px;
    width: 100%;
    max-width: 250px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%);
    color: #1e3a8a;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

form button:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, white 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* FOOTER RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

footer h4 {
    color: #93c5fd;
    margin-bottom: 20px;
}

.cajaderedes {
    margin: 30px 0;
}

.cajaderedes i {
    font-size: 2.5em;
    margin: 0 15px;
    cursor: pointer;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.cajaderedes i:hover {
    color: white;
    transform: scale(1.2);
}

footer p {
    color: #cbd5e1;
    margin: 10px 0;
}

footer h6 {
    color: #93c5fd;
    margin-top: 20px;
}

/* MARQUEE RESPONSIVE - MANTENIENDO LOS NUEVOS COLORES */
marquee {
    padding: 15px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    font-weight: bold;
}

/* MEDIA QUERIES PARA DISPOSITIVOS ESPECÍFICOS */

/* Tablets */
@media (max-width: 1024px) {
    .sub-portada h1 {
        font-size: 2.5em;
    }
    
    .sub-portada h2 {
        font-size: 1.5em;
    }
    
    .nosotros-info h3,
    .servicios h3 {
        font-size: 2.5em;
    }
    
    .nosotros-info b {
        font-size: 1.3em;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    ul {
        margin-top: 15px;
    }
    
    ul li {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .sub-portada h1 {
        font-size: 2em;
    }
    
    .sub-portada h2 {
        font-size: 1.2em;
    }
    
    .nosotros-info,
    .nosotros-img {
        width: 100%;
    }
    
    .nosotros-info {
        height: auto;
        padding: 40px 20px;
    }
    
    .nosotros-img {
        height: 300px;
    }
    
    .servicios h3 {
        font-size: 2em;
    }
    
    h4 {
        font-size: 1.5em;
    }
    
    .info-server div {
        width: 100%;
        max-width: 400px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .sub-portada h1 {
        font-size: 1.8em;
    }
    
    .sub-portada h2 {
        font-size: 1em;
    }
    
    .nosotros-info h3,
    .servicios h3 {
        font-size: 1.8em;
    }
    
    .nosotros-info b {
        font-size: 1.1em;
    }
    
    .muestras h3 {
        font-size: 1.5em;
    }
    
    figure {
        min-width: 100%;
    }
    
    .comentario {
        max-width: 100%;
    }
    
    h4 {
        font-size: 1.3em;
    }
    
    .cajaderedes i {
        font-size: 1.8em;
        margin: 0 8px;
    }
}