body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #000000;
    padding-top: 70px;
}

header {
    background: url('../img/portada.png') center/cover no-repeat;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 100px 20px;
}

.contenedor {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
}

h1, h2 {
    margin-bottom: 10px;
}

.seccion {
    padding: 60px 20px;
    text-align: center;
}

.gris {
    background-color: #f4f4f4;
}

.tarjetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tarjeta {
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.galeria {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.galeria img {
    width: 300px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.05);
}
.boton {
    display: inline-block;
    padding: 14px 30px;
    background: #c8a165;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}


footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}
/* ===== GALERÍA LIGHTBOX ===== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-contenido {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* ===== MENÚ DE NAVEGACIÓN ===== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #111;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c59d5f;
}
html {
    scroll-behavior: smooth;
}
/* ===== BOTÓN FLOTANTE WHATSAPP ===== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}
/* ===== FORMULARIO DE CONTACTO ===== */

.formulario {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input,
.formulario textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.formulario textarea {
    resize: none;
    height: 120px;
}

.formulario button {
    border: none;
    cursor: pointer;
    font-size: 15px;
}
/* ===== TESTIMONIOS ===== */

.testimonios-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.testimonio {
    background: white;
    padding: 25px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-style: italic;
}

.testimonio h4 {
    margin: 15px 0 5px;
    font-style: normal;
    color: #222;
}

.testimonio span {
    font-size: 13px;
    color: #777;
    font-style: normal;
}
/* ===== ANTES Y DESPUÉS ===== */

.comparaciones {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.comparacion {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.imagen-comp {
    text-align: center;
}

.imagen-comp h4 {
    margin-bottom: 10px;
    color: #444;
}

.imagen-comp img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.imagen-comp img:hover {
    transform: scale(1.05);
}
/* ===== RESPONSIVE PARA CELULAR ===== */

@media (max-width: 768px) {

    .nav-contenedor {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    header {
        padding: 70px 15px;
    }

    .contenedor {
        width: 100%;
        padding: 20px;
    }

    .tarjetas {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        width: 90%;
    }

    .galeria img {
        width: 90%;
    }

    .comparacion {
        flex-direction: column;
        align-items: center;
    }

    .imagen-comp img {
        width: 90%;
    }

    .testimonios-contenedor {
        flex-direction: column;
        align-items: center;
    }

    .testimonio {
        width: 90%;
    }

    .formulario {
        width: 90%;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
}
/* ===== ANIMACIONES SUAVES ===== */

.animar {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== ICONOS EN SERVICIOS ===== */

.icono-servicio {
    font-size: 40px;
    color: #c59d5f;
    margin-bottom: 15px;
}
/* ===== SECCIÓN SOBRE MÍ ===== */

.sobre-mi {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.contenedor-sobre-mi {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.imagen-sobre-mi {
    flex: 1 1 400px;
}

.imagen-sobre-mi img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.texto-sobre-mi {
    flex: 1 1 450px;
}

.texto-sobre-mi h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.texto-sobre-mi p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.frase-destacada {
    font-weight: bold;
    color: #c59d5f;
    margin-top: 10px;
}
/* ===== SECCIÓN PLANOS TÉCNICOS ===== */

.planos-tecnicos {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.titulo-seccion {
    font-size: 32px;
    margin-bottom: 15px;
}

.descripcion-planos {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
    line-height: 1.7;
}

.galeria-planos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.plano-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plano-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.plano-item h3 {
    margin-bottom: 10px;
}

.plano-item p {
    color: #666;
    font-size: 14px;
}

/* Hover elegante */
.plano-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
/* ===== BOTÓN SECCIÓN PLANOS ===== */

.contenedor-boton-planos {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.boton-planos {
    display: inline-block;
    background: linear-gradient(145deg, #c59d5f, #b8873f);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin: 0; /* 👈 IMPORTANTE */
}
.boton-planos:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.icono-plano {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, #c59d5f, #b8873f);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-left: auto;
    margin-right: auto;
}
.plano-item:hover .icono-plano {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}
.planos-tecnicos {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}
.planos-tecnicos::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}
.planos-tecnicos > * {
    position: relative;
    z-index: 1;
}
.planos-tecnicos::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.015),
        rgba(0,0,0,0.015) 2px,
        transparent 2px,
        transparent 60px
    );
    top: -50%;
    left: -50%;
    z-index: 0;
}
.planos-tecnicos {
    cursor: crosshair;
}
:root {
    --fondo: #ffffff;
    --texto: #111111;
    --fondo-seccion: #f2f2f2;
    --tarjeta: #ffffff;
    --linea: #dcdcdc;
}

body.dark-mode {
    --fondo: #0d0d0d;
    --texto: #ffffff;
    --fondo-seccion: #1f1f1f;
    --tarjeta: #2a2a2a;
    --linea: #333333;
}
.tarjeta {
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}
.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.icono-servicio {
    font-size: 40px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tarjeta:hover .icono-servicio {
    transform: scale(1.15) rotate(5deg);
    color: #666;
}
.tarjeta::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: #999;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tarjeta:hover::after {
    width: 80%;
}
.mantenimiento {
    background-color: #f7f7f7;
    text-align: center;
    padding: 80px 20px;
}
.mantenimiento-contenido {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.mantenimiento-item {
    background: #ffffff;
    padding: 30px;
    width: 300px;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: all 0.35s ease;
}

.mantenimiento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.icono-mantenimiento {
    font-size: 40px;
    margin-bottom: 15px;
    color: #444;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mantenimiento-item:hover .icono-mantenimiento {
    transform: scale(1.15) rotate(5deg);
    color: #000;
}
.boton-mantenimiento {
    display: inline-block;
    margin-top: 50px;
    padding: 14px 28px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.boton-mantenimiento:hover {
    background: #333;
    transform: translateY(-3px);
}
.contenedor-sobre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.video-sobre video {
    width: 400px;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.texto-sobre {
    max-width: 500px;
}
.video-sobre {
    transition: transform 0.4s ease;
}

.video-sobre:hover {
    transform: scale(1.03);
}
.redes-sociales {
    background-color: #111;
    text-align: center;
    padding: 70px 20px;
}

.redes-sociales h2 {
    color: #fff;
    margin-bottom: 40px;
}
.iconos-redes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.iconos-redes a {
    color: #fff;
    font-size: 40px;
    transition: all 0.3s ease;
}
.iconos-redes a:hover {
    transform: translateY(-8px) scale(1.1);
    color: #ccc;
}
.iconos-redes a:hover .fa-instagram {
    color: #E1306C;
}

.iconos-redes a:hover .fa-facebook-f {
    color: #1877F2;
}

.iconos-redes a:hover .fa-whatsapp {
    color: #25D366;
}

.iconos-redes a:hover .fa-tiktok {
    color: #ffffff;
}
.redes-sociales {
    background-color: #0f0f0f;
    text-align: center;
    padding: 90px 20px;
    position: relative;
}

.linea-tecnica {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #444, #999);
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

.redes-sociales h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 28px;
}

.subtexto-redes {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 16px;
}
.iconos-redes {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.iconos-redes a {
    width: 70px;
    height: 70px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.35s ease;
    text-decoration: none;
}
.iconos-redes a:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.iconos-redes a:hover .fa-instagram {
    color: #E1306C;
}

.iconos-redes a:hover .fa-facebook-f {
    color: #1877F2;
}

.iconos-redes a:hover .fa-whatsapp {
    color: #25D366;
}

.iconos-redes a:hover .fa-tiktok {
    color: #ffffff;
}
.animar {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}
.boton:hover {
    background: #b88d4f;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.boton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.6s;
}

.boton:hover::after {
    left: 100%;
}
#materiales {
    background: #f5f5f5;
}

.intro-materiales {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contenedor-materiales {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-material {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    flex: 1 1 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.tarjeta-material:hover {
    transform: translateY(-8px);
}

.tarjeta-material.destacado {
    border: 2px solid #000000;
}

.comparativa-materiales {
    margin-top: 60px;
    overflow-x: auto;
}

.comparativa-materiales table {
    width: 100%;
    border-collapse: collapse;
}

.comparativa-materiales th,
.comparativa-materiales td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.comparativa-materiales th {
    background: #c8a165;
    color: #fff;
}

.mensaje-profesional {
    margin-top: 40px;
    text-align: center;
    font-weight: 500;
}

.cta-secundario {
    margin-top: 30px;
    text-align: center;
}
.seccion:nth-of-type(odd) {
    background-color: #ffffff;
}

.seccion:nth-of-type(even) {
    background-color: #f3f3f3;
}









