* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: #f7f5f8;
    color: #2b2b2b;
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #3b0f46; /* refined brand heading color */
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* Header */

header {
    width: 100%;
    min-height: 520px;
    background: linear-gradient(135deg, rgba(59,15,70,0.85) 0%, rgba(188,78,156,0.6) 60%), url(../img/portada.jpg) center/cover no-repeat;
    position: relative;
    color: #fff;
    padding-bottom: 40px;
}

/* Navigation with logo */
.nav-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 18px 6%;
}

.brand{
    display:flex;
    align-items:center;
    background: rgba(255,255,255,0.9);
    padding:6px 10px;
    border-radius:8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.brand .logo{
    height:110px; /* larger, prominent logo */
    max-width:220px;
    width:auto;
    border-radius:6px;
    display:block;
}

.nav-links a{
    color: rgba(255,255,255,0.95);
    font-weight:700;
    margin-left:18px;
    text-decoration:none;
}

.nav-links a:hover{ text-decoration:underline; }

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color:#fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 46px;
    color: #fff;
    letter-spacing: .6px;
}

.textos-header h2{
    font-size: 22px;
    font-weight: 300;
    color:#f3e9f4;
    margin-bottom: 18px;
}

.btn-cta{
    display:inline-block;
    background: #ffd400;
    color: #3b0f46;
    padding: 14px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59,15,70,0.25);
}
.btn-cta:hover{ transform: translateY(-2px); }

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* About us */

main .sobre-nosotros{
    padding: 30px 0 60px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* Galeria */


.portafolio{
    background: #ffffff;
}

/* Nuestro local */
.nuestro-local{ background: #f9f9fb; padding: 40px 0; }
.local-wrap{ display:flex; gap:30px; align-items:center; justify-content:center; flex-wrap:wrap; }
.imagen-local{ width:72%; max-width:820px; border-radius:8px; box-shadow: 0 12px 36px rgba(0,0,0,0.18); display:block; }
.local-text{ width:90%; max-width:820px; text-align:center; color:#333; padding-top:12px; }

@media screen and (max-width:900px){
    .imagen-local{ width:90%; }
    .local-text{ width:90%; }
}

/* Mas sobre nuestro local */
.mas-sobre-local{ background: #fff; padding: 40px 0; }
.mas-sobre-local .info-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items:start; }
.mas-sobre-local .info-card{ background: #fbf7ff; padding: 20px; border-radius: 8px; box-shadow: 0 8px 26px rgba(59,15,70,0.06); }
.mas-sobre-local .info-card h3{ color:#3b0f46; margin-bottom:8px; }
.mas-sobre-local .info-card p, .mas-sobre-local .info-card li{ color:#333; font-weight:300; line-height:1.5; }
.mas-sobre-local .info-card ul{ padding-left:18px; }
.mas-sobre-local .cta-local .btn-cta{ padding:12px 26px; }

@media screen and (max-width:900px){
    .mas-sobre-local .info-grid{ grid-template-columns: 1fr; }
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: rgba(59,15,70,0.72);
    transition: transform .4s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #fff;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/* Clients */

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: linear-gradient(135deg, #4d0686, #642a73);
    display: flex;
    width: 46%;
    height: 200px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
}

.cards .card img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
}

/*  Our team */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}


.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.servicio-ind{
    width: 28%;
    text-align: center;
    background: transparent;
    transition: transform .18s ease, box-shadow .18s ease;
    border-radius: 10px;
    padding: 6px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-height: 300px; /* consistent card height */
}
.servicio-ind img{
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    max-height: 160px; /* consistent visible height */
    object-fit: contain; /* preserve aspect ratio */
    background: #fff; /* contrast with header backgrounds */
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(59,15,70,0.06);
}

.servicio-ind:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(59,15,70,0.12);
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/* footer */

footer{
    background: #2b2b2b;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #ffd400;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

/* Floating WhatsApp */
.whatsapp-float{
    position: fixed;
    right: 20px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg,#25d366,#128c7e);
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
}
.whatsapp-float img{ width:36px; height:36px; }

/* small accessibility focus */
.whatsapp-float:focus, .btn-cta:focus, .nav-links a:focus{ outline: 3px solid rgba(255,212,0,0.45); outline-offset: 4px; }

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .nav-bar{ padding: 14px 4%; }

    .brand .logo{ height:90px; max-width:180px; }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    .nav-links{ display:none; }
    .brand{ display:flex; justify-content:center; }
    .brand .logo{ height:64px; max-width:140px; }

    /* ensure header text doesn't overlap the large logo on small screens */
    .textos-header{ margin-top: 12px; padding-top: 8px; }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }
}