* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #0a2b3e 0%, #1a4a6f 100%);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.activo {
    border-bottom: 2px solid #ffaa33;
}

/* CARRUSEL */
.carrusel {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carrusel-contenedor {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel-contenedor img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    flex-shrink: 0;
}

.carrusel-controles {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carrusel-controles button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.carrusel-controles button:hover {
    background: rgba(0,0,0,0.8);
}

.carrusel-indicadores {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicador {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.activo {
    background-color: #ffaa33;
    transform: scale(1.2);
}

/* HERO */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    margin: 1rem 5%;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h2 {
    color: #1a4a6f;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* DESTACADOS / CARDS */
.destacados {
    padding: 2rem 5%;
}

.destacados h2 {
    text-align: center;
    color: #1a4a6f;
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #ffaa33;
    margin-bottom: 0.8rem;
}

/* PÁGINAS INTERNAS */
.pagina-interna {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.pagina-interna h2 {
    color: #1a4a6f;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #ffaa33;
    padding-left: 1rem;
}

.contenido .texto h3 {
    color: #0a2b3e;
    margin: 1.5rem 0 0.5rem;
}

/* SERVICIOS LISTA */
.servicios-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.servicio-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #ffaa33;
}

.servicio-item h3 {
    color: #1a4a6f;
    margin-bottom: 0.8rem;
}

/* CONTACTO */
.contacto-contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-contacto {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 12px;
}

.formulario-contacto .campo {
    margin-bottom: 1.2rem;
}

.formulario-contacto label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.btn-enviar {
    background: #1a4a6f;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background: #0a2b3e;
}

.mensaje-form {
    margin-top: 1rem;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: #0a2b3e;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contacto-contenedor {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .carrusel-contenedor img {
        max-height: 300px;
    }
}