*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

h1{ 
    font-size: 3em;
    font-family: "Raleway", Times, serif;
}
h2{ 
    font-size: 2.7em;
    font-family: "Raleway", Times, serif;
}
h3{ 
    font-size: 2em;
    font-family: "Raleway", Times, serif;
}

p{ font-size: 1.25em;}
ul{ list-style: none;}
li{ font-size: 1.25em;}

button{
    font-size: 1em;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: #007BFF;
    cursor: pointer;
}

button:hover{
    background-color: #0056b3;
}

.container{
    max-width: 1400px;
    margin: auto;
}

 .color-acento{ color:blueviolet; } 

header{
    background: linear-gradient(135deg, #00BFFF 0%, #0099cc 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .header-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.logo-section{
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-section .img-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

header .logo-img{
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

header .logo-img:hover{
    transform: scale(1.1);
}

.logo-container-bg{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.logo-container-bg::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine{
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.logo-container-bg:hover{
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.logo-text{
    display: flex;
    flex-direction: column;
    text-align: left;
}

header .logo{
    margin: 0;
    padding: 0;
    font-weight: bold;
    color: white;
    font-size: 1.8em;
    font-family: "Montserrat", Times, serif;
}

.logo-subtitle{
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

header nav{
    display: flex;
    flex-direction: row;
    text-align: center;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

header a{
    padding: 10px 16px;
    text-decoration: none;
    color: white;
    font-family: "Montserrat", Times, serif;
    font-weight: 500;
    font-size: 0.95em;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

header a:hover{
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

header a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

header a:hover::after{
    width: 100%;
}

@media (max-width: 768px){
    header .header-top{
        flex-direction: column;
        gap: 20px;
    }
    
    header nav{
        justify-content: center;
        width: 100%;
    }
    
    header a{
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .logo-section{
        width: 100%;
        justify-content: center;
    }
}

.somos-tarjetas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tarjeta-somos{
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-somos:hover{
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tarjeta-somos h3{
    color: #00BFFF;
    margin-top: 0;
}

.tarjeta-somos p{
    color: #333;
    font-size: 1em;
}

#nuestros-productos{
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
}

#nuestros-productos h2{
    text-align: center;
    color: #00BFFF;
    margin-bottom: 10px;
}

.productos-intro{
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.productos{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.carta{
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.carta:hover{
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.25);
}

.carta-imagen{
    width: 100%;
    height: 220px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carta-imagen img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carta:hover .carta-imagen img{
    transform: scale(1.05);
}

.carta-contenido{
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carta h3{
    color: #00BFFF;
    font-size: 1.3em;
    margin: 0 0 15px 0;
}

.carta p{
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.carta button{
    background-color: #00BFFF;
    border: none;
    width: fit-content;
    align-self: flex-start;
}

.carta button:hover{
    background-color: #0099cc;
}

#compromiso-medio-ambiente{
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    padding: 60px 20px;
}

#compromiso-medio-ambiente h2{
    text-align: center;
    color: #00838f;
    margin-bottom: 10px;
}

.sostenibilidad-intro{
    text-align: center;
    color: #00546a;
    font-size: 1.1em;
    margin-bottom: 40px;
    font-weight: 500;
}

.sostenibilidad-tarjetas{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tarjeta-sostenibilidad{
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #00bcd4;
}

.tarjeta-sostenibilidad:hover{
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.tarjeta-icon{
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.tarjeta-sostenibilidad h3{
    color: #00838f;
    font-size: 1.3em;
    margin: 15px 0;
}

.tarjeta-sostenibilidad p{
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

#contacto{
    background-color: #f5f5f5;
    padding: 60px 20px;
}

#contacto h2{
    text-align: center;
    color: #00BFFF;
    margin-bottom: 10px;
}

.contacto-intro{
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contacto-contenido{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px){
    .contacto-contenido{
        grid-template-columns: 1fr;
    }
}

.contacto-info{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item{
    display: flex;
    gap: 20px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-item:hover{
    transform: translateX(5px);
}

.info-icon{
    font-size: 2.5em;
    min-width: 60px;
    display: flex;
    align-items: center;
}

.info-texto h3{
    color: #00BFFF;
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.info-texto p{
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

.formulario-contacto{
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h3{
    color: #00BFFF;
    text-align: center;
    margin-top: 0;
}

.form-grupo{
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-grupo label{
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-grupo input,
.form-grupo textarea{
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-grupo input:focus,
.form-grupo textarea:focus{
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.btn-enviar{
    width: 100%;
    padding: 12px;
    background-color: #00BFFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover{
    background-color: #0099cc;
}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    background-image: linear-gradient(
        0deg,
        rgba(241, 232, 232, 0.5),
        rgba(237, 227, 227, 0.5)
    )
    ,url("media/logosalome.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1, p{
    color: white;
    font-family: "Open Sans", Times, serif;
}

#hero button{
    font-size: 1.75em;
}

#somos-proyecto .container{
    text-align: center;
    padding: 100px 12px;
    background-color: rgb(245, 255, 250);
}

#somos-proyecto p{
    color: black;
}

#nuestros-productos{
    background-color: rgb(30,30,30);
    color: white;
    text-align: center;
}

#nuestros-productos .container{
    padding: 150px 12px;
}

#nuestros-productos h2{
    margin-top: 0;
    font-size: 3.2em;
}

#nuestros-productos p{
    display: none;
}

#nuestros-productos .carta{
    background-position: center center;
    background-size: cover;
    padding: 50px 0px;
    margin: 30px;
    border-radius: 15px;
}

.carta:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/AtunAceite.png");

}

.carta:nth-child(2){
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/AtunAgua.png");
}

.carta:nth-child(3){
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/AtunSache.png");

}

#compromiso-medio-ambiente .container{
    text-align: center;
    padding: 50px 12px;
}

#compromiso-medio-ambiente p{
    color: black;
}

#contacto .container{
    text-align: center;
    padding: 50px 12px;
    background-color: rgb(245, 255, 250);
}

#contacto p{
    color: black;
}

#final{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(30,30,30);
    color: white;
    height: 80vh;
}

#final h2{
    font-size: 9vw;
}

#final button{
    font-size: 5vw;
}

footer{
    background: linear-gradient(135deg, #00838f 0%, #004d62 100%);
    color: white;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
}

footer .container{
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-contenido{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-seccion{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo{
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img{
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo h3{
    margin: 0;
    font-size: 1.5em;
    color: white;
}

.footer-seccion h4{
    margin: 0 0 12px 0;
    font-size: 1.1em;
    color: #80deea;
    font-weight: 700;
}

.footer-seccion p{
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-seccion ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-seccion ul li{
    font-size: 0.95em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-seccion ul li a{
    color: #80deea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-seccion ul li a:hover{
    color: white;
    text-decoration: underline;
}

.redes-sociales{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.red-social{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.3em;
}

.red-social:hover{
    background-color: #00BFFF;
    transform: scale(1.1);
}

.footer-bottom{
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    text-align: center;
}

.footer-quote{
    margin: 0 0 12px 0;
    font-size: 0.95em;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright{
    margin: 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px){
    .footer-contenido{
        grid-template-columns: 1fr;
    }
    
    .footer-bottom{
        text-align: center;
    }
}

@media (min-width: 850px){
    header{
        position: fixed;
        width: 100%;
    }

   /*  #header .img-container{
        background-image: url("media/logosalome.png");
        background-size: cover;
        background-position: center center;
        height: 50px;
        width: 40px; 
    } */

    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #hero h1{
        font-size: 5em;
    }

 #somos-proyecto .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #somos-proyecto h2{
        margin-top: 0px;
    }


    #nuestros-productos .productos{
        display: flex;
        justify-content: center;
    }

    #nuestros-productos p{
        display: block;
        margin-bottom: 30px;
    }

    #nuestros-programas h2{
        font-size: 4em;
    }

    #nuestros-productos h3{
        margin-top: 0;
    }

    #nuestros-productos .carta{
        padding: 50px;
        background-size: 100% 150px;
        background-repeat: no-repeat;
        background-position-y: 0;
        background-color: rgba(50, 50, 50, 1);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    .carta:first-child{
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        )
        ,url("media/AtunAceite.png");

    }

    .carta:nth-child(2){
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        )
        ,url("media/AtunAgua.png");
    }

    .carta:nth-child(3){
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        )
        ,url("media/AtunSache.png");

    }

    footer .container{
        justify-content: flex-end;
        font-size: 1em;
    }
}

