@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* *********************/
/* seccion I N I C I O */
/* *********************/

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

#inicio {
    background: linear-gradient(rgba(135, 223, 250, 0.692), rgba(0, 0, 0, 0.418)), url("../img/fondo3.gif");
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#inicio .contenido {
    width: 100%;
}

#inicio .contenido header {
    background-color: rgb(248, 249, 249);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

#inicio .contenido header .contenido-header {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

#inicio .contenido header .contenido-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#inicio .contenido header .contenido-header nav ul li a {
    text-decoration: none;
    color: #0c0c0c;
    margin: 0 12px;
    font-weight: 400;
    transition: .5s;
    font-family: 'Times New Roman', Times, serif;
    white-space: nowrap;
}

#inicio .contenido header .contenido-header nav ul li a:hover {
    color: #32a9ca;
}

#inicio .contenido header .contenido-header .seleccionado {
    color: #359fbd;
}

.redes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.redes a {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.redes a .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.redes a:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.redes button {
    font-size: 11px;
    height: 40px;
    width: auto;
    min-width: 120px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 15px;
    white-space: nowrap;
}

#inicio .contenido .presentacion {
    max-width: 1100px;
    margin: 0 auto;
    color: #041941;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    min-height: 100vh;
}

#inicio .contenido .presentacion .bienvenida {
    font-size: clamp(24px, 5vw, 40px);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Times New Roman', Times, serif;
}

#inicio .contenido .presentacion h2 {
    font-size: clamp(28px, 6vw, 55px);
    margin-bottom: 25px;
    line-height: 1.2;
}

#inicio .contenido .presentacion h2 span {
    font-size: clamp(24px, 5vw, 50px);
    color: #fcfcfc;
}

#inicio .contenido .presentacion .descripcion {
    max-width: 700px;
    margin: 25px auto;
    font-size: clamp(16px, 3vw, 25px);
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
}

#icono-nav {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 5px;
}

/* *********************/
/* seccion S O B R E  M I */
/* *********************/

#sobremi {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #111135;
    display: flex;
    align-items: center;
    gap: 40px;
}

#sobremi .contenedor-foto {
    flex: 0 0 auto;
    max-width: 400px;
}

#sobremi .contenedor-foto img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    background-color: #f3f3f3;
    padding: 10px;
}

#sobremi .sobremi {
    flex: 1;
}

#sobremi .sobremi h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 1px;
    line-height: 1.3;
}

#sobremi .sobremi h2 span {
    color: #50a5ff;
}

#sobremi .sobremi h3 {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#sobremi .sobremi p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #565656;
    margin-bottom: 15px;
}

/* *********************/
/* seccion C A R R U S E L */
/* *********************/

#personal-services {
    width: 100%;
    overflow: hidden;
}

#carousel {
    height: auto;
    min-height: 500px;
}

#carousel .titulo-seccion {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    text-transform: uppercase;
    color: #111135;
    padding: 20px;
    background: linear-gradient(#5aebddcc, rgba(255, 255, 255, 0.8));
    margin: 0;
}

.home .carousel-item {
    min-height: 500px;
    height: 60vh;
    background-position: center;
    background-size: cover;
    position: relative;
}

.home .carousel-controls {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 10;
    transform: translateX(-50%);
}

.home .carousel-indicators {
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.home .carousel-indicators li {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home .carousel-indicators li.active {
    border-color: #fff;
    transform: scale(1.1);
}

.home .carousel-control-next,
.home .carousel-control-prev {
    width: 50px;
    height: 50px;
    opacity: 1;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.home .carousel-control-next:hover,
.home .carousel-control-prev:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* *********************/
/* seccion V A L O R E S */
/* *********************/

#valores {
    background-color: #f2f4f4;
    padding: 50px 20px;
}

#valores .container {
    max-width: 900px;
    margin: 0 auto;
}

.titulo-valores {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    color: #1da3eb;
    margin-bottom: 30px;
}

.valores-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.valores-item2 {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.valor-icono {
    flex: 0 0 80px;
}

.valor-icono img {
    max-width: 100%;
    height: auto;
}

.valor-info {
    flex: 1;
}

.valor-nombre {
    font-size: clamp(20px, 3vw, 24px);
    color: #080808;
    margin-bottom: 10px;
}

.valor-descripcion {
    font-size: clamp(16px, 2.5vw, 18px);
    color: #399de9;
    line-height: 1.5;
}

.objetivo-general {
    font-size: clamp(16px, 2.5vw, 18px);
    color: #399de9;
    font-weight: bold;
    line-height: 1.5;
}

/* *********************/
/* seccion V I S I O N - M I S I O N */
/* *********************/

#vision-mision {
    background: linear-gradient(#94e4dccc, rgba(57, 81, 109, 0.8)), url("img/oceano.jpg");
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
}

#vision-mision .titulo-seccion {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    text-transform: uppercase;
    color: #111135;
    margin-bottom: 30px;
}

#vision-mision .fila {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#vision-mision .fila .servicio {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: .5s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#vision-mision .fila .servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.imagen-centrada {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#vision-mision .fila .servicio h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 20px;
    color: #333;
}

#vision-mision .fila .servicio hr {
    width: 50px;
    margin: 0 auto 20px;
    border: 2px solid #50a5ff;
}

#vision-mision .fila .servicio p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

#vision-mision .fila .servicio a {
    color: #50a5ff;
    text-decoration: none;
    font-weight: bold;
}

#vision-mision .fila .servicio a:hover {
    text-decoration: underline;
}

/* *********************/
/* seccion P O R T F O L I O */
/* *********************/

#portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

#portfolio .titulo-seccion {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    text-transform: uppercase;
    color: #2a97ea;
    margin-bottom: 40px;
}

#portfolio .fila {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

#portfolio .fila .proyecto,
#portfolio .fila .proyecto1 {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 2px solid #5cc072;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#portfolio .fila .proyecto:hover,
#portfolio .fila .proyecto1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#portfolio .fila .proyecto img,
#portfolio .fila .proyecto1 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: .5s;
}

#portfolio .fila .proyecto .info,
#portfolio .fila .proyecto1 .info {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    color: #ff5080;
    width: 100%;
    padding: 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

#portfolio .fila .proyecto:hover .info,
#portfolio .fila .proyecto1:hover .info {
    opacity: 1;
    transform: translateY(0);
}

#portfolio .fila .proyecto .info h4,
#portfolio .fila .proyecto1 .info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* *********************/
/* seccion I D E N T I D A D */
/* *********************/

#identidad {
    background: linear-gradient(rgba(58, 190, 213, 0.7), rgba(29, 42, 26, 0.7)), url("img/fondo-inicio.jpg");
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
}

#identidad .contenido {
    max-width: 1200px;
    margin: 0 auto;
}

#identidad .contenido .presentacion .quienes-somos {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    color: white;
}

#identidad .contenido .presentacion .descripcion {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.6;
    color: white;
    margin-bottom: 20px;
    text-align: justify;
}

/* *********************/
/* seccion U B I C A C I O N */
/* *********************/

.ubicacion {
    background-color: #f9f9f9;
    padding: 80px 20px;
}

.contenido-seccion {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contenido-seccion .titulo-seccion {
    font-size: clamp(28px, 4vw, 36px);
    color: #333;
    margin-bottom: 30px;
}

.mapa {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mapa iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* *********************/
/* seccion V E N T A N A  M O D A L */
/* *********************/

.ventana {
    background: rgb(86, 119, 141);
    width: 90%;
    max-width: 800px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 30px;
    border-radius: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

#cerrar {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.estilo-cerrar {
    width: 20px;
    height: 20px;
}

.contenedor-formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.imagen-contenedor {
    text-align: center;
}

.img-contenedor {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.formulario-contenedor {
    flex: 1;
}

.titulo-denuncia {
    color: #ff9100;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.formulario-categorizacion {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.checkbox {
    margin-right: 10px;
}

.formulario-contenedor input[type="email"],
.formulario-contenedor textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.formulario-contenedor textarea {
    min-height: 100px;
    resize: vertical;
}

.color-button {
    background-color: #3eb674;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.color-button:hover {
    background-color: #359f5e;
}

/* *********************/
/* seccion C O N T A C T O */
/* *********************/

.container-form {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-form {
    padding: 30px;
}

.info-form h2 {
    font-size: clamp(28px, 4vw, 35px);
    margin-bottom: 20px;
    color: #333;
}

.info-form a {
    display: flex;
    align-items: center;
    font-size: clamp(14px, 2vw, 17px);
    text-decoration: none;
    color: black;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 10px;
    transition: color 0.3s ease;
}

.info-form a:hover {
    color: #509cff;
}

.info-form a i {
    color: rgb(76, 146, 207);
    margin-right: 10px;
    font-size: 20px;
    min-width: 25px;
}

.container-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.container-form form input,
.container-form form textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.container-form form input:focus,
.container-form form textarea:focus {
    border-color: #509cff;
}

.container-form form textarea {
    min-height: 150px;
    resize: vertical;
}

.container-form form button {
    padding: 15px;
    font-size: 16px;
    border: none;
    background: #3f6f80;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container-form form button:hover {
    background: #2d5361;
}

/* *********************/
/* seccion F O O T E R */
/* *********************/

footer {
    background-color: #3f6f80;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 15px;
    font-size: 16px;
}

footer .redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .redes a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

footer .redes a:hover {
    color: #ccc;
}

/* *********************/
/* M E D I A  Q U E R I E S */
/* *********************/

@media (max-width: 1024px) {
    #inicio .contenido header .contenido-header {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        flex-wrap: nowrap; 
    }
    
    .logo {
    flex: 0 0 auto;
    margin-right: 20px;
    }

    .logo img {
        width: 180px;
        max-width: 100%;
        height: auto;
        transition: all 0.3s ease;
    }
    
    #links li a {
        font-size: 14px;
        margin: 0 8px;
    }
    
    .redes button {
        min-width: 110px;
        font-size: 10px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    #icono-nav {
        display: block;
    }
    
    nav#nav {
        display: block !important; /* Forzar visibilidad */
        flex: 1;
        margin: 0 20px;
    }
    
    nav#nav.mobile-active {
        display: block;
    }
    
    #links {
        list-style: none;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    #links li {
        margin: 0;
    }
    
    #links li a {
        text-decoration: none;
        color: #0c0c0c;
        font-weight: 500;
        transition: all 0.3s ease;
        font-family: 'Times New Roman', Times, serif;
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 14px;
        white-space: nowrap;
        display: block;
    }

    #links li a:hover {
        color: #32a9ca;
        background-color: rgba(50, 169, 202, 0.1);
    }

    #inicio .contenido header .contenido-header .seleccionado {
        color: #359fbd;
        font-weight: 600;
    }
    
    .contenido-header .redes {
        display: none;
    }
    
    .contenido-header .redes.mobile-redes {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 3;
    }

        .contenido-header .redes-container {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }

    .contenido-header .redes {
        display: flex !important; /* Forzar visibilidad */
        margin: 0;
    }
    
    /* Secciones */
    #sobremi {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    
    #sobremi .contenedor-foto {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    #vision-mision .fila,
    #portfolio .fila {
        flex-direction: column;
        align-items: center;
    }
    
    #vision-mision .fila .servicio,
    #portfolio .fila .proyecto,
    #portfolio .fila .proyecto1 {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .container-form {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
    }
    
    .valores-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ventana {
        width: 95%;
        padding: 20px;
    }
    
    .contenedor-formulario {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #inicio .contenido header .contenido-header {
        padding: 8px 10px;
    }
    
    .logo img {
        width: 120px;
    }
    
    #inicio .contenido .presentacion {
        padding: 80px 15px 40px;
    }
    
    .home .carousel-indicators li {
        width: 40px;
        height: 40px;
    }
    
    .home .carousel-control-next,
    .home .carousel-control-prev {
        width: 40px;
        height: 40px;
    }
    
    .redes button {
        font-size: 12px;
        height: 40px;
        min-width: 140px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0 15px;
        white-space: nowrap;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .redes button[style*="background-color: #398FAF"] {
        background-color: #398FAF !important;
        color: white;
    }

    .redes button[style*="background-color: #398FAF"]:hover {
        background-color: #2c7a96 !important;
        transform: translateY(-2px);
    }

    /* Botón Trabaja con Nosotros */
    .redes button[style*="background-color: #39af7e"] {
        background-color: #39af7e !important;
        color: white;
    }

    .redes button[style*="background-color: #39af7e"]:hover {
        background-color: #2e9467 !important;
        transform: translateY(-2px);
    }

    /* Icono del botón buzon */
    .redes button i.fas.fa-tty {
        color: red !important;
        margin-right: 5px;
        font-size: 14px;
    }
    
    footer .redes {
        gap: 15px;
    }
    
    footer .redes a {
        font-size: 20px;
    }
}

/* Utilidades para scroll suave y mejoras de UX */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-contrast: high) {
    #inicio .contenido header {
        background-color: #000;
    }
    
    #inicio .contenido header .contenido-header nav ul li a {
        color: #fff;
    }
}

/* Impresión */
@media print {
    .redes,
    #icono-nav,
    .ventana,
    .container-form form,
    footer .redes {
        display: none !important;
    }
    
    #inicio {
        background: white !important;
        color: black !important;
    }
    
    #inicio .contenido .presentacion {
        color: black !important;
    }
}

@media (max-width: 1024px) {
    #links li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .redes button {
        min-width: 130px;
        font-size: 11px;
        height: 38px;
    }
    
    .logo img {
        width: 160px;
    }
}

@media (max-width: 900px) {
    #links li a {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .redes button {
        min-width: 120px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    /* Header móvil */
    #inicio .contenido header .contenido-header {
        flex-wrap: wrap;
        padding: 8px 15px;
    }
    
    /* Logo y hamburguesa en primera línea */
    .logo {
        flex: 1;
        margin-right: 0;
    }
    
    #icono-nav {
        display: block;
        order: 2;
    }
    
    /* Navegación oculta por defecto en móvil */
    nav#nav {
        display: none !important;
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    nav#nav.mobile-active {
        display: block !important;
    }
    
    #links {
        flex-direction: column;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    
    #links li {
        width: 100%;
    }
    
    #links li a {
        padding: 15px 20px;
        font-size: 16px;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #links li:last-child a {
        border-bottom: none;
    }
    
    /* Botones en segunda línea */
    .contenido-header .redes-container {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        display: flex !important;
    }
    
    .contenido-header .redes {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .redes button {
        min-width: 160px;
        font-size: 12px;
        height: 45px;
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .contenido-header .redes {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .redes button {
        min-width: 100%;
        max-width: 100%;
        font-size: 11px;
        height: 42px;
    }
    
    .logo img {
        width: 140px;
    }
    
    #icono-nav {
        font-size: 20px;
        padding: 5px 8px;
    }
}

/* Remover estilos inline problemáticos y usar CSS */
.redes a button {
    font-size: 12px !important;
    background-color: #398FAF !important;
    height: 40px !important;
    width: auto !important;
    min-width: 140px !important;
    border: none !important;
    border-radius: 5px !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Botón Trabaja con Nosotros específico */
.redes a[href*="google.com"] button {
    background-color: #39af7e !important;
    min-width: 160px !important;
}

/* Esto asegura que todo sea visible en desktop */
@media (min-width: 769px) {
    nav#nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contenido-header .redes-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contenido-header .redes {
        display: flex !important;
    }
    
    #icono-nav {
        display: none !important;
    }
}