/* Variables de color */
:root {
    --azul-marino: #001f3f;
    --azul: #0074D9;
    --azul-oscuro: #0056b3;
}

/* Estilos generales */
body {
    font-family: 'Cabin-Regular', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background-color: var(--azul-marino);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 116, 217, 0.3);
}

nav ul li a .img {
    margin-left:5px;
    margin-bottom: 0px;
    width: 16px;
}

/* Hero */
.hero {
    background-image: url('../img/fondo_principal.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.hero-text .btn {
    background-color: var(--azul);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 15px;
    display: inline-block;
}

.hero-text .btn:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 116, 217, 0.3);
}

/* Estilos para la sección introductoria con imagen */
.intro-contenedor {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Fondo gris claro para toda la sección */
}

.intro-box {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
}

.intro-imagen {
    flex: 1;
    min-height: 350px;
}

.intro-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-texto {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-texto h2 {
    color: var(--azul-marino);
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
}

.intro-texto h2::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--azul);
    bottom: -10px;
    left: 0;
}

.intro-contenido {
    color: #555;
    line-height: 1.6;
    margin: 25px 0;
}

.intro-contenido p {
    margin-bottom: 15px;
}

.intro-contenido strong {
    color: var(--azul-marino);
}

.intro-boton {
    display: inline-block;
    background-color: var(--azul);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 15px;
}

.intro-boton:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 116, 217, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-box {
        flex-direction: column;
    }
    
    .intro-imagen {
        min-height: 250px;
    }
    
    .intro-texto {
        padding: 30px;
    }
    
    .intro-texto h2 {
        font-size: 1.8rem;
    }
}

/* Servicios */
.servicio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.servicio.inverso {
    background-color: #fff;
}

.contenido {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.texto {
    flex: 1;
}

.imagen {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.imagen img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.imagen:hover img {
    transform: scale(1.1);
    cursor:pointer;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #555;
}

.boton {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--azul);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.boton:hover {
    background-color: var(--azul-oscuro);
}

.contenido::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: black;
    left: 50%;
    top: 0%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.servicio.inverso .contenido {
    flex-direction: row-reverse;
}

/* Diagnóstico */
#diagnostico {
    background-image: url('img/diagnostico-fondo.jpg');
    background-color: var(--azul);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#diagnostico .contenido {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#diagnostico .mensaje {
    flex: 1;
    text-align: left;
}

#diagnostico .productos-destacados {
    width: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: #000;
}

#diagnostico .productos-destacados h3 {
    margin-top: 0;
}

#diagnostico .productos-destacados ul {
    list-style: none;
    padding: 0;
}

#diagnostico .productos-destacados ul li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--azul-marino);
    color: white;
    text-align: center;
    padding: 20px;
}

footer .redes-sociales {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

footer .redes-sociales a {
    color: white;
    font-size: 1.5rem;
}

/* Responsividad */
@media (max-width: 768px) {
    .contenido {
        flex-direction: column;
    }

    .servicio.inverso .contenido {
        flex-direction: column;
    }

    .imagen img {
        height: auto;
    }
}