/* Variables de color para no repetir */
:root {
    --gris-fondo: #A8AAAD;
    --rojo-lobo: #A30000;
    --negro: #1a1a1a;
    --blanco: #ffffff;
    --gris-header: #576366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--negro);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Header Estilo LoboWeb */
.navbar {
    background-color: var(--gris-fondo);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(49, 49, 47, 0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a{
    color:  var(--negro);
    font-size: 2rem;
    letter-spacing: 0.2 rem
}

.logo span {
    font-weight: 800;
    
    color: var(--rojo-lobo);
    font-size: 2.2rem;
}

.logo a:hover{
    color: var(--rojo-lobo);
}

.logo span:hover{
    color: var(--blanco);
}

.logo svg{
    padding-left: 10px;
}

.menu a {
    text-decoration: none;
    color: var(--negro );
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
    
}

.menu a:hover {
    color: var(--rojo-lobo);
    border-bottom: 1px solid #CC0000;
}

.btn-contacto {
    background-color: var(--negro);
    color: var(--blanco) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-contacto:hover {
    background-color: var(--rojo-lobo);
}

/* --- CONFIGURACIÓN MENÚ MÓVIL --- */

/* Escondemos el botón en escritorio */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 6px;
    z-index: 1100;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--negro);
    transition: 0.3s;
    border-radius: 5px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Se muestra en móviles y tablets */
    }

    .menu {
        position: fixed;
        left: -100%; /* Escondido a la izquierda */
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--gris-fondo);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
    }

    .menu.active {
        left: 0; /* Aparece al activarse */
    }

    .menu a {
        margin: 15px 0;
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* Animación del botón hamburguesa a X */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* --- SECCIÓN HERO --- */
.hero {
    padding: 60px;
    padding-bottom: 120px;
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    
    /* CAPA OSCURA MUCHO MÁS POTENTE SOBRE EL TEIDE BLANCO */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1)), 
                url('../img/hero.webp');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantenemos el efecto Parallax */
}

.hero-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    
   
}


.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--blanco); /* ¡Ahora blanco! */
    margin-bottom: 25px;
    letter-spacing: -2px;
    /* Añadimos una sombra para que flote sobre la oscuridad */
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
   
}

.txt-rojo {
    color: #FF3333; /* Un rojo un pelín más brillante para que no se apague */
}

.hero-text p {
    font-size: 1.35rem;
    color: #eeeeee; /* Un gris casi blanco */
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    padding-top: 3rem;
}

/* --- BOTONES --- */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-principal {
    background-color: var(--rojo-lobo); /* El principal ahora rojo */
    color: var(--blanco);
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: 2px solid var(--rojo-lobo);
}

.btn-principal:hover {
    background-color: var(--blanco);
    color: var(--negro);
    transform: translateY(-3px);
}

.btn-secundario {
    background-color: transparent;
    color: var(--blanco); /* Texto blanco */
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--blanco); /* Borde blanco */
    transition: 0.3s;
}

.btn-secundario:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-btns {
        flex-direction: column;
    }
}

/* --- SECCIÓN SERVICIOS --- */
.servicios {
    padding: 80px 0;
    background-color: #e0e0e0; /* Un gris sutil para que las tarjetas resalten */
}

.grid-servicios {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* La primera columna es más ancha */
    grid-gap: 25px;
}

/* Tarjeta Base */
.card {
    background-color: #bdbdbd; /* Gris de tu diseño */
    border-radius: 40px; /* Esas esquinas bien redondeadas */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Pack Mantenimiento ocupa las dos columnas */
.pack-mantenimiento {
    grid-column: span 2;
    flex-direction: row; /* En horizontal */
    justify-content: space-between;
    align-items: center;
}


.pack-mantenimiento .card-content {
    display: flex;
    align-items: center;
    gap: 30px;
}


/* Elementos internos */
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #424242; /* El círculo oscuro de tu boceto */
    border-radius: 50%;
    margin-bottom: 25px;
}

.pack-mantenimiento .icon-circle {
    margin-bottom: 0;
}

.card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--negro);
}

.card p {
    color: #444;
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 35px;
}

/* Botones de los Packs */
.btn-pack {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    min-width: 280px;
    transition: background 0.3s;
}

.btn-pack:hover {
    background-color: var(--rojo-lobo);
}

.arrow {
    font-size: 1.5rem;
    margin-left: 20px;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .grid-servicios {
        grid-template-columns: 1fr; /* Todo en una columna para móvil */
    }
    .pack-mantenimiento {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
    .pack-mantenimiento .card-content {
        flex-direction: column;
    }
}


/* --- SECCIÓN PORTAFOLIO --- */
.portafolio {
    padding: 100px 0;
    background-color: var(--gris-fondo);
}

.section-title-wide {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 12px;
    margin-bottom: 80px;
    color: var(--negro);
    text-transform: uppercase;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

/* El truco del WebMaster: Invertir el orden en los items pares (2, 4, 6...) */
.portfolio-item:nth-child(even) .portfolio-img {
    order: 2;
}

.portfolio-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Sombra profunda como en tu captura */
    transition: transform 0.4s ease;
}

.portfolio-img img:hover {
    transform: scale(1.02);
}

.portfolio-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.desc-breve {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.psr-box {
    margin-bottom: 35px;
}

.psr-box p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Botón de ver proyecto */
.btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    min-width: 220px;
    transition: 0.3s;
}

.btn-ver:hover {
    background-color: var(--rojo-lobo);
    transform: translateX(10px);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .portfolio-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .portfolio-item:nth-child(even) .portfolio-img {
        order: 0;
    }
    .section-title-wide {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
}

/* --- SECCIÓN PRECIOS --- */
.precios {
    padding: 100px 0;
    background-color: #f4f4f4;
    text-align: center;
}

.section-subtitle {
    margin-bottom: 50px;
    color: #666;
}

.tabla-precios {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Para que todas midan lo mismo de alto */
    gap: 20px;
}

.precio-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 30px;
    flex: 1;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    border: 1px solid #eee;
}

/* Efecto para el recomendado */
.precio-card.destacado {
    border: 2px solid var(--rojo-lobo);
    transform: scale(1.05); /* Lo hace resaltar físicamente */
    position: relative;
    z-index: 10;
}

.badge {
    background: var(--rojo-lobo);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.precio-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.monto {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.monto span {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--negro);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1; /* Empuja el botón hacia abajo para que todos estén alineados */
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.check {
    color: var(--rojo-lobo);
    font-weight: bold;
    margin-right: 10px;
}

/* Botón contratar */
.btn-contratar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    color: var(--negro);
    border: 2px solid var(--negro);
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.precio-card.destacado .btn-contratar {
    background: var(--negro);
    color: white;
}

.btn-contratar:hover {
    background: var(--rojo-lobo);
    color: white;
    border-color: var(--rojo-lobo);
}

/* Responsivo */
@media (max-width: 992px) {
    .tabla-precios {
        flex-direction: column;
        align-items: center;
    }
    .precio-card.destacado {
        transform: scale(1);
        margin: 30px 0;
    }
}

/* --- SECCIÓN PROCESO --- */
.proceso {
    padding: 100px 0;
    background-color: var(--gris-fondo); /* Fondo gris general */
    text-align: center;
}

.proceso .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--negro);
}

/* El marco blanco que envuelve los pasos */
.proceso-container {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 40px; /* Bordes muy redondeados como en tu imagen */
    display: flex;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Cada una de las cajas grises interiores */
.paso-card {
    background-color: #a0a0a0; /* El gris de las cajas internas */
    padding: 40px 30px;
    border-radius: 20px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
}

.paso-card:hover {
    transform: scale(1.02);
    background-color: #909090;
}

.paso-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.numero {
    font-size: 3rem;
    font-weight: 900;
    color: var(--negro);
    line-height: 1;
}

.paso-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--negro);
}

.paso-card p {
    font-size: 1.1rem;
    color: var(--negro);
    line-height: 1.4;
    font-weight: 500;
}

/* Responsivo para que en móvil se apilen */
@media (max-width: 992px) {
    .proceso-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .paso-card {
        padding: 30px;
    }
}

/* --- SECCIÓN SOBRE MÍ --- */
.sobre-mi {
    padding: 100px 0;
    background-color: var(--gris-fondo);
    text-align: center;
}

.sobre-mi-card {
    background-color: var(--blanco);
    display: flex;
    align-items: center; /* Centra verticalmente imagen y texto */
    border-radius: 40px;
    overflow: hidden; /* Para que la imagen no se salga de las esquinas redondeadas */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.sobre-mi-img {
    flex: 1;
    line-height: 0; /* Elimina espacios extraños bajo la imagen */
}

.sobre-mi-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la foto rellene su espacio sin deformarse */
    display: block;
}

.sobre-mi .section-title{
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--negro);
}

.sobre-mi-text {
    flex: 1;
    padding: 60px;
    text-align: center;
}

.sobre-mi-text h3 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--negro);
}

.sobre-mi-text p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

/* --- RESPONSIVO --- */
@media (max-width: 850px) {
    .sobre-mi-card {
        flex-direction: column; /* Foto arriba, texto abajo en móviles */
    }
    
    .sobre-mi-text {
        padding: 40px 20px;
    }
    
    .sobre-mi-text h3 {
        font-size: 2rem;
    }
}

/* --- SECCIÓN CONTACTO / FOOTER --- */
.contacto {
    padding: 100px 0 50px;
    background-color: var(--gris-fondo);
}

.contacto-wrapper {
    background-color: #f9f9f9;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contacto-wrapper h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 800;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Formulario */
.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #555;
}

.input-group input, 
.input-group textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--rojo-lobo);
}

.btn-enviar {
    background-color: var(--negro);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover {
    background-color: var(--rojo-lobo);
}

/* WhatsApp */
.whatsapp-directo {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #25D366; /* Verde WhatsApp oficial */
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp img {
    width: 25px;
}

.info-extra {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
}

/* Móvil */
@media (max-width: 850px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    .contacto-wrapper {
        padding: 40px 20px;
    }
}

/* --- FOOTER FINAL --- */
.footer-legal {
    padding: 40px 0;
    background-color: var(--gris-fondo);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

.heart {
    color: var(--rojo-lobo);
}

.legal-links a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    margin: 0 5px;
}

.legal-links a:hover {
    color: var(--rojo-lobo);
}



.btn-cookie{
    background-color: #000;
    color: #999;
    padding: 5px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}