/* -------- Estilos generales -------- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

/* -------- Navegación -------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    padding: 12px 0;
    transition: background 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #FFD700;
}

/* -------- Franja 1: Hero -------- */
.hero {
    position: relative;
    background: url('../img/fondo-casamass.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fondo degradado equilibrado */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    text-align: center;
}

.logo {
    color: #FFD700;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle .gray { color: #CCCCCC; }
.subtitle .red { color: #C8102E; font-weight: 600; }

.description { 
    color: #EDEDED; 
    margin-top: 15px; 
    font-size: 1.1rem; 
    line-height: 1.6; 
}

/* -------- Franja 2: Blanca -------- */
.white-section {
    background: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.stat-item {
    background: #fff;
    border: 2px solid #C8102E;
    border-radius: 10px;
    width: 200px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stat-item .icon {
    font-size: 2rem;
    color: #C8102E;
    margin-bottom: 10px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.icon-red {
    width: 50px;
    margin-bottom: 10px;
}

/* -------- Franja 3: CTA -------- */
.cta {
    background: linear-gradient(90deg, #FFB347 0%, #FFCC33 100%);
    text-align: center;
    padding: 80px 20px;
    color: #000;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.btn {
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #C8102E;
}

/* -------- Franja 4: Footer -------- */
footer {
    background: #000;
    color: #CCCCCC;
    padding: 50px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    background: #FFD700;
    color: #000;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

footer a {
    color: #FFD700;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #fff;
}

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

footer ul li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .stats, .services, .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}
