:root {
    --primary: #1e1e1e;
    --accent: #ff6b00; 
    --secondary: #444444; 
    --light: #f8f9fa;
    --wp-color: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Open Sans', sans-serif; scroll-behavior: smooth; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
body { background-color: var(--light); color: var(--primary); overflow-x: hidden; }

header { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.98); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.1); z-index: 1000; }
.logo { display: flex; align-items: center; cursor: pointer; user-select: none; text-decoration: none; }
.logo img { height: 50px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

nav ul { display: flex; list-style: none; align-items: center; }
nav ul li { margin-left: 20px; }
nav ul li a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
nav ul li a:hover { color: var(--accent); }

/* ESTILOS DEL NUEVO BOTÓN CONTACTANOS EN EL MENÚ */
nav ul li a.btn-contacto-nav {
    background-color: #ffffff;
    color: #e60000;
    border: 2px solid #e60000;
    padding: 8px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 0 #b30000;
    font-weight: 800;
    margin-left: 10px;
    text-transform: uppercase;
}
nav ul li a.btn-contacto-nav:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b30000;
    color: #e60000;
}
nav ul li a.btn-contacto-nav:active {
    transform: translateY(4px);
    box-shadow: none;
}

.hero { height: 90vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('upload/portada.webp'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; padding: 20px; margin-top: 60px; }
.hero h1 { font-size: 3.5rem; text-transform: uppercase; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin-bottom: 10px; font-weight: 300; }
.hero .badges { margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.badge { background: rgba(255, 255, 255, 0.2); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; backdrop-filter: blur(5px); }

.btn-main { padding: 15px 35px; background: var(--accent); color: var(--primary); text-decoration: none; font-weight: 800; border-radius: 5px; transition: 0.3s; font-size: 1.1rem; border: none; cursor: pointer; display: inline-block;}
.btn-main:hover { background: #e66000; transform: scale(1.02); }

section { padding: 80px 10%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; position: relative; display: inline-block; }
.section-title h2::after { content: ''; width: 50px; height: 4px; background: var(--accent); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

.grid-productos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.card-producto { background: white; border-radius: 12px; padding: 30px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; justify-content: space-between; height: 100%;}
.card-producto:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-content { flex-grow: 1; display: flex; flex-direction: column; }
.card-producto h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.3rem; }

.ventajas-lista { text-align: left; list-style: none; margin: 15px 0; padding-left: 5px; font-size: 0.95rem; color: var(--secondary); flex-grow: 1;}
.ventajas-lista li { margin-bottom: 8px; }
.ventajas-lista li::before { content: '✓'; color: var(--accent); font-weight: bold; margin-right: 8px; }

.btn-rect { background: var(--accent); color: var(--primary); text-decoration: none; font-weight: 800; border-radius: 0; padding: 15px; text-align: center; transition: 0.3s; font-size: 1rem; width: 100%; display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 20px; border: none; cursor: pointer; text-transform: uppercase;}
.btn-rect:hover { background: #e66000; }

.calc-wrapper { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.calc-form { flex: 2; min-width: 300px; }
.calc-info { flex: 1; min-width: 280px; background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;}

.calc-type-selector { margin-bottom: 25px; }
.calc-type-selector label { font-weight: 700; display: block; margin-bottom: 8px; color: var(--primary);}
.calc-type-selector select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; cursor: pointer; background: #f8f9fa;}

.superficie-row { border: 1px solid #ddd; padding: 20px; border-radius: 8px; margin-bottom: 15px; position: relative; background: #fff; }
.superficie-row h4 { margin-bottom: 15px; font-size: 1rem; color: var(--secondary); }
.inputs-group { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.input-box { flex: 1; min-width: 80px; }
.input-box label { display: block; font-size: 0.8rem; color: var(--secondary); margin-bottom: 5px; }
.input-box input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.input-box input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.m2-result { font-weight: 700; font-size: 1.1rem; min-width: 60px; text-align: right; }
.btn-delete-row { position: absolute; top: 15px; right: 15px; color: #ff4757; cursor: pointer; background: none; border: none; font-size: 1.2rem; }

.calc-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 15px; }
.btn-add-surface { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; font-size: 1rem; }
.btn-add-surface:hover { text-decoration: underline; }
.calc-total { padding: 15px 20px; border: 1px solid #ddd; border-radius: 8px; text-align: center; background: #fafafa; display: flex; flex-direction: column;}
.calc-total span { font-size: 0.85rem; color: var(--secondary); }
.calc-total strong { font-size: 1.4rem; color: var(--primary); }

.resultado-box { margin-top: 30px; padding: 25px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; }
.resultado-box h3 { color: #0369a1; margin-bottom: 15px; }
.resultado-box ul { list-style: none; margin-bottom: 15px; }
.resultado-box ul li { padding: 8px 0; border-bottom: 1px dashed #bae6fd; font-size: 0.95rem; }

/* ACORDEÓN MEJORADO: Altura máxima extendida a 1000px */
.accordion { border: 1px solid #eaeaea; border-radius: 6px; overflow: hidden; background: #fff; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02);}
.accordion-btn { width: 100%; text-align: left; padding: 20px; background: transparent; border: none; font-weight: 600; font-size: 1rem; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s;}
.accordion-btn:hover { background: #fafafa; }
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; font-size: 0.95rem; color: var(--secondary); background: #fff; line-height: 1.6;}
.accordion-content.open { padding: 0 20px 20px 20px; max-height: 1000px; border-top: 1px solid transparent; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { width: 100%; height: 250px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.1); cursor: zoom-in; }

.carousel-wrapper { overflow: hidden; width: 100%; position: relative; padding: 20px 0; }
.carousel-wrapper::before, .carousel-wrapper::after { content: ""; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
.carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--light) 0%, transparent 100%); }
.carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--light) 0%, transparent 100%); }

.carousel-track { display: flex; gap: 20px; width: max-content; animation: scroll_carousel 40s linear infinite; }
.carousel-wrapper:hover .carousel-track { animation-play-state: paused; }
@keyframes scroll_carousel { to { transform: translateX(calc(-50% - 10px)); } }
.review-card { width: 300px; background: #ffffff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #eee; }
.stars { color: #f1c40f; margin-bottom: 10px; font-size: 1.2rem; }
.review-text { font-style: italic; color: var(--secondary); font-size: 0.95rem; margin-bottom: 15px; line-height: 1.5; }
.review-author { font-weight: 700; color: var(--primary); font-size: 0.9rem; text-align: right; }

/* DISEÑO 3 COLUMNAS PARA CONTACTO */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    background: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    align-items: stretch; 
}
.contact-col { display: flex; flex-direction: column; }
.map-container { border-radius: 8px; overflow: hidden; position: relative; min-height: 350px;}
.map-container iframe { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border: none; }
.contact-info-box, .contact-social-box { background: #fafafa; border-radius: 8px; padding: 20px; border: 1px solid #eee;}

.social-contact-links { display: flex; flex-direction: column; gap: 15px; }
.social-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--secondary); padding: 15px; background: #fff; border: 1px solid #ddd; border-radius: 8px; transition: 0.3s; }
.social-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.social-link i { font-size: 2rem; color: var(--accent); width: 40px; text-align: center;}
.social-link.wa-link:hover i { color: #25D366; }
.social-link.ig-link:hover i { color: #E1306C; }
.social-link strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 3px;}
.social-link span { font-size: 0.85rem; color: #666; line-height: 1.4;}

.floating-wp { position: fixed; width: 65px; height: 65px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 38px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 4000; display: flex; align-items: center; justify-content: center; text-decoration: none; animation: pulse-wp 2s infinite; }
.floating-wp:hover { background-color: #128C7E; color: #fff; }
@keyframes pulse-wp { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

footer { background: var(--primary); color: white; padding: 40px 10%; text-align: center; }
.social-icons a { color: white; font-size: 2rem; margin: 0 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--accent); transform: translateY(-3px); display: inline-block; }

@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav ul { display: none; }
    .logo img { height: 40px; }
    .floating-wp { width: 55px; height: 55px; bottom: 20px; right: 20px; font-size: 32px; }
}