/*=====================================================
    MÁRMOLES Y PREFABRICADOS EL TRÉBOL
    style.css
======================================================*/

/*==============================
    VARIABLES
===============================*/
:root {
    --primary: #1d4d2c;
    --primary-light: #2d6b3f;
    --gold: #c9a35c;
    --gold-dark: #a8843d;
    --white: #ffffff;
    --light: #f5f6f5;
    --text: #222222;
    --text-light: #666666;
    --dark: #111111;
    --dark2: #1b1b1b;
    --shadow: 0 15px 35px rgba(0, 0, 0, .08);
    --radius: 10px;
    --transition: .35s ease;
}

/*==============================
    RESET
===============================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

/*==============================
    NAVBAR
===============================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    z-index: 999;
    transition: .4s;
    box-shadow: 0 3px 20px rgba(0, 0, 0, .05);
}

.navbar.scrolled {
    padding: 4px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
}

.logo-title {
    display: block;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-subtitle {
    display: block;
    font-size: .82rem;
    font-family: "Playfair Display", serif;
    color: var(--gold);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links li {
    list-style: none;
}

.nav-links a{
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 8px 0;
    transition: color .35s ease, transform .35s ease;
}

.nav-links a:hover{
    color: var(--primary);
    transform: translateY(-3px);
}

.nav-links a:active{
    transform: scale(.95);
}

.nav-links a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: width .35s ease;
}

.nav-links a:hover::after{
    width: 100%;
}
.btn-nav {
    padding: 12px 25px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
    transition: .3s;
}

.btn-nav:hover {
    background: var(--gold);
}

/*==============================
    BOTÓN MENÚ MÓVIL
===============================*/
.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/*==============================
    HERO
===============================*/
.hero {
    position: relative;
    height: 100vh;
    background: url("imagenes/hero.jpg") center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Fondo exclusivo de Cocinas */
.hero-cocinas {
    background: url("imagenes/hero-cocinas.jpg") center center / cover no-repeat;
}

/* Fondo exclusivo de Materiales */
.hero-materiales {
    background: url("imagenes/hero-materiales.jpg") center center / cover no-repeat;
}

/* Filtro más oscuro para Materiales */
.hero-materiales .hero-overlay {
    background: linear-gradient(
        rgba(10, 25, 15, .62),
        rgba(10, 25, 15, .62)
    );
}

/* Fondo exclusivo de Arquitectura */
.hero-arquitectura {
    background: url("imagenes/hero-arquitectura.jpg") center center / cover no-repeat;
}

/* Filtro más oscuro para Arquitectura */
.hero-arquitectura .hero-overlay {
    background: linear-gradient(
        rgba(10, 25, 15, .62),
        rgba(10, 25, 15, .62)
    );
}

/* Fondo exclusivo de Prefabricados */
.hero-prefabricados {
    background: url("imagenes/hero-prefabricados.jpg") center center / cover no-repeat;
}

/* Filtro más oscuro para Prefabricados */
.hero-prefabricados .hero-overlay {
    background: linear-gradient(
        rgba(10, 25, 15, .60),
        rgba(10, 25, 15, .60)
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(8, 18, 12, .72),
        rgba(8, 18, 12, .72)
    );
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -150px;
    bottom: -150px;
    background: rgba(201, 163, 92, .08);
    border-radius: 50%;
    filter: blur(10px);
    animation: float 10s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(850px, 90%);
    color: #fff;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-size: .85rem;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: auto auto 45px;
    color: rgba(255, 255, 255, .92);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/*==============================
    BOTONES
===============================*/
.btn-primary {
    display: inline-block;
    background: var(--primary);
    padding: 18px 38px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--gold);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .2);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--gold);
    padding: 18px 38px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    transition: .3s;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: var(--gold);
}

/*==============================
    SECCIONES
===============================*/
.section {
    padding: 100px 0;
}

.dark-bg {
    background: var(--dark2);
}

.gray-bg {
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .9rem;
}

.white-text h2 {
    color: #fff;
}

.white-text p {
    color: rgba(255, 255, 255, .7);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 25px auto 0;
    border-radius: 50px;
}

.divider.gold {
    background: var(--gold);
}

/*==============================
    GRIDS
===============================*/
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

/*==============================
    TARJETAS DE SERVICIOS
===============================*/
.luxury-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.luxury-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .45),
        transparent
    );
    transition: 1s;
    z-index: 2;
}

.luxury-card:hover::before {
    left: 130%;
}

.luxury-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, .15);
}

.card-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    transition: .5s;
}

.luxury-card:hover .card-img {
    transform: scale(1.08);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-body p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.card-link {
    color: var(--gold-dark);
    font-weight: 700;
    transition: .3s;
}

.card-link i {
    margin-left: 8px;
    transition: .3s;
}

.card-link:hover {
    color: var(--primary);
}

.card-link:hover i {
    transform: translateX(6px);
}

/*==============================
    TARJETAS DE MATERIALES
===============================*/
.material-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 45px 30px;
    text-align: center;
    border-radius: 12px;
    transition: .4s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.dark-bg .material-box {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
}

.material-box:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .15);
}

.dark-bg .material-box:hover {
    background: rgba(255, 255, 255, .09);
}

.material-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.material-box h3 {
    color: var(--primary);
    font-family: "Playfair Display", serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.material-box p {
    color: var(--text-light);
}

.dark-bg .material-box h3 {
    color: #fff;
}

.dark-bg .material-box p {
    color: rgba(255, 255, 255, .75);
}

/*==============================
    PREFABRICADOS
===============================*/
.prefab-card-3d {
    background: #fff;
    border-radius: 15px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .4s;
    cursor: pointer;
}

.prefab-card-3d:hover {
    transform: translateY(-12px) rotateX(8deg);
    box-shadow: 0 25px 40px rgba(0, 0, 0, .18);
}

.prefab-card-3d i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.prefab-card-3d h4 {
    font-family: "Playfair Display", serif;
    color: var(--primary);
    font-size: 1.2rem;
}

/*==============================
    GALERÍA
===============================*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: #fff;
    transition: .4s;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: .6s;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item h3 {
    background: #fff;
    color: var(--primary);
    text-align: center;
    padding: 18px;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
}

/*==============================
    ESTADÍSTICAS Y PROCESO
===============================*/
.stats {
    background: linear-gradient(135deg, var(--primary), #15361f);
    color: #fff;
    padding: 90px 0;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-box h2 {
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-box p {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .95rem;
}

/*==============================
    CTA
===============================*/
.cta {
    background:
        linear-gradient(rgba(17, 17, 17, .82), rgba(17, 17, 17, .82)),
        url("imagenes/cta.jpg") center center / cover;
    text-align: center;
    color: #fff;
    padding: 110px 20px;
}

.cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
}

/*==============================
    CONTACTO
===============================*/
.contact-section {
    background: linear-gradient(135deg, #18361f, #101814);
    color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.contact-info p {
    color: rgba(255, 255, 255, .85);
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item span {
    color: #fff;
}

.contact-form {
    background: #fff;
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: .3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 163, 92, .15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 170px;
}

.contact-form button {
    width: 100%;
    border: none;
}

/*==============================
    MAPA
===============================*/
.map-section {
    width: 100%;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/*==============================
    FOOTER
===============================*/
.footer {
    background: #111;
    color: #ddd;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 18px;
    font-family: "Playfair Display", serif;
}

.footer h4 {
    color: var(--gold);
    margin-bottom: 18px;
}

.footer p {
    line-height: 1.8;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin: 30px 0;
}

.copyright {
    text-align: center;
    color: #999;
}

/*==============================
    REDES SOCIALES
===============================*/
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    border-radius: 50%;
    color: #fff;
    transition: .35s;
}

.social-icons a:hover {
    background: var(--gold);
    transform: translateY(-6px);
}

/*==============================
    BOTÓN WHATSAPP
===============================*/
.whatsapp{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    transition: .35s;
}

.whatsapp:hover{
    transform: scale(1.12);
}
/*==============================
    BOTÓN INSTAGRAM
===============================*/
.instagram-float{
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E4405F;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: .3s;
}

.instagram-float:hover{
    transform: scale(1.1);
    background: #C13584;
}
/*==============================
    BOTÓN SUBIR
===============================*/
#topButton{
    position: fixed;
    right:25px;
    bottom:165px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:var(--gold);
    color:#fff;
    font-size:1.2rem;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:1000;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

#topButton.show {
    opacity: 1;
    visibility: visible;
}

#topButton:hover {
    transform: translateY(-5px);
}

/*==============================
    ANIMACIONES
===============================*/
.fade {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-40px);
    }
}

/*==============================
    RESPONSIVE
===============================*/
@media (max-width: 576px) {

    .nav-container {
        height: 80px;
    }

    .menu-btn {
        display: block;
        font-size: 30px;
        color: var(--primary);
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding: 40px 0;
        gap: 25px;
        transition: .4s;
        box-shadow: 0 15px 25px rgba(0, 0, 0, .08);
    }

    .nav-links.active {
        left: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .contact-wrapper,
    .footer-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .contact-info {
        text-align: center;
    }

    .social-icons,
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .hero {
        height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 260px;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 230px;
    }

    .contact-form {
        padding: 30px;
    }

    .cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: .72rem;
    }

    .hero {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tag {
        font-size: .75rem;
        letter-spacing: 2px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: .8rem;
    }

    .card-body,
    .testimonial-card,
    .contact-form {
        padding: 25px;
    }

    .material-box,
    .info-block-animated,
    .prefab-card-3d {
        padding: 30px 20px;
    }

    .footer {
        padding: 60px 0 20px;
    }

    /* WhatsApp */
    .whatsapp {
        width: 58px;
        height: 58px;
        right: 18px;
        bottom: 20px;
        font-size: 1.7rem;
    }

    /* Instagram */
    .instagram-float {
        width: 58px;
        height: 58px;
        right: 18px;
        bottom: 90px;
        font-size: 1.7rem;
    }

    /* Botón subir */
    #topButton {
        width: 50px;
        height: 50px;
        right: 22px;
        bottom: 160px;
    }

}

/*=========================
    INSTAGRAM
==========================*/

.instagram-section{
    background:#f8f8f8;
}

.instagram-box{
    max-width:500px;
    margin:auto;
    background:#fff;
    padding:45px;
    text-align:center;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
    transition:.4s;
}

.instagram-box:hover{
    transform:translateY(-8px);
}

.instagram-box img{
    width:220px;
    max-width:100%;
    height:auto;
    border-radius:18px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    transition:.3s;
}

.instagram-box img:hover{
    transform:scale(1.05);
}
.instagram-box h3{
    font-size:2rem;
    color:var(--primary);
    margin-bottom:15px;
}

.instagram-box p{
    color:#666;
    line-height:1.8;
    margin-bottom:30px;
}

.instagram-box .btn-primary{
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.instagram-box .fa-instagram{
    font-size:1.2rem;
}

