/* VARIABLES DE COLOR Y DISEÑO */
:root {
    --brand-orange: #f26522;
    --brand-orange-hover: #e04d0b;
    --bg-pure: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

/* RESET GENERAL */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; } 
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-main); background-color: var(--bg-pure); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* CLASES DE ANIMACIÓN */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* TÍTULOS */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--bg-dark); line-height: 1.2; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.text-orange { color: var(--brand-orange); }

/* HEADER & NAV */
header { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.logo-img { height: 45px; width: auto; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.03); }

nav ul { display: flex; align-items: center; gap: 30px; }
nav ul li a { font-weight: 600; color: var(--text-muted); transition: color 0.2s; font-size: 0.95rem; }
nav ul li a:hover, nav ul li a.active { color: var(--brand-orange); }

.contact-badge { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); padding: 10px 20px; border-radius: 50px; border: 1px solid var(--border-light); font-weight: 700; color: var(--bg-dark); transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.contact-badge:hover { transform: translateY(-2px); border-color: var(--brand-orange); }
.contact-badge i { color: var(--brand-orange); }

/* HERO (INICIO) */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 80px 5%; background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-pure) 100%); min-height: 85vh; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: #e2e8f0; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.hero-image:hover img { transform: scale(1.03); }

.btn-primary { background: var(--brand-orange); color: white; padding: 16px 32px; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3); font-size: 1.05rem; }
.btn-primary:hover { background: var(--brand-orange-hover); color: white; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(242, 101, 34, 0.4); }

/* COBERTURA EXCLUSIVA VALENCIA */
.coverage { background: var(--bg-dark); color: white; padding: 80px 5%; text-align: center; }
.coverage h2 { color: white; font-size: 2.5rem; margin-bottom: 20px; }
.coverage p { font-size: 1.2rem; color: #cbd5e1; max-width: 800px; margin: 0 auto 30px; }
.phone-huge { font-size: 4rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--brand-orange); display: block; margin: 20px 0; letter-spacing: 1px; text-shadow: 0 4px 20px rgba(242, 101, 34, 0.2); }
.coverage-tags { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 40px; }
.tag { background: rgba(255,255,255,0.05); padding: 10px 24px; border-radius: 50px; font-size: 0.95rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.1); transition: background 0.3s; }
.tag:hover { background: rgba(255,255,255,0.15); }
.tag i { color: var(--brand-orange); margin-right: 5px; }

/* ESPECIALIDADES (SERVICIOS) */
.specialties { padding: 100px 5%; background: var(--bg-pure); }
.specialty-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }

@media (min-width: 993px) {
    .specialty-row:nth-child(even) .specialty-text { order: -1; }
}

.specialty-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; background: var(--bg-alt); position: relative; }
.specialty-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.specialty-img:hover img { transform: scale(1.05); }

.specialty-text h3 { font-size: 2.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.specialty-text h3 i { color: var(--brand-orange); background: var(--bg-alt); width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; }
.specialty-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 25px; }
.specialty-list { margin-top: 20px; }
.specialty-list li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 1.05rem; }
.specialty-list li i { color: #10b981; margin-top: 5px; }

/* METODOLOGÍA (EMPRESA) */
.methodology { padding: 100px 5%; background: var(--bg-alt); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.step-card { background: var(--bg-pure); padding: 50px 30px 40px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); position: relative; transition: transform 0.3s, box-shadow 0.3s; }
.step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.step-number { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: var(--brand-orange); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; border: 5px solid var(--bg-alt); box-shadow: 0 5px 15px rgba(242, 101, 34, 0.3); }
.step-card h4 { font-size: 1.4rem; margin-top: 10px; margin-bottom: 15px; }
.step-card p { color: var(--text-muted); font-size: 1rem; }

/* PROYECTOS / GALERÍA */
.projects { padding: 100px 5%; background: var(--bg-pure); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.gallery-item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); position: relative; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2)); opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2.5rem; transform: scale(0.5); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: white; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); opacity: 1; }

/* CONTACTO */
.contact-section { padding: 100px 5%; background: var(--bg-alt); }
.contact-wrapper { max-width: 900px; margin: 0 auto; background: var(--bg-pure); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.contact-form { padding: 60px 50px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.form-group { position: relative; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; color: var(--bg-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px; border: 2px solid var(--border-light); border-radius: 12px; font-family: inherit; font-size: 1rem; transition: all 0.3s; background: var(--bg-alt); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-orange); background: var(--bg-pure); box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1); }
.btn-submit { width: 100%; margin-top: 15px; justify-content: center; font-size: 1.15rem; }
.error-text { color: #ef4444; font-size: 0.85rem; margin-top: 8px; display: none; font-weight: 600; }

/* FOOTER */
footer { background: var(--bg-dark); color: white; padding: 80px 5% 30px; text-align: center; }
.footer-logo { max-width: 200px; margin: 0 auto 25px; filter: brightness(0) invert(1); opacity: 0.9; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }
.footer-info { color: #94a3b8; margin-bottom: 40px; font-size: 1.05rem; }
.footer-info i { color: var(--brand-orange); margin: 0 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.95rem; color: #64748b; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom a { color: #cbd5e1; cursor: pointer; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--brand-orange); text-decoration: underline; }

/* ESTILOS INTERNOS PÁGINA AVISO LEGAL */
.legal-page-container { padding: 80px 5%; max-width: 1000px; margin: 0 auto; text-align: left; }
.legal-body h2 { font-size: 2.2rem; border-bottom: 2px solid var(--brand-orange); padding-bottom: 15px; margin-bottom: 25px; }
.legal-body h3 { font-size: 1.4rem; margin-top: 35px; margin-bottom: 15px; color: var(--bg-dark); }
.legal-body p, .legal-body ul { color: var(--text-main); font-size: 1rem; margin-bottom: 15px; line-height: 1.8; }
.legal-body ul { padding-left: 20px; list-style-type: disc; }
.legal-body ul li { margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 35px; }
    .specialty-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 70px; }
    .steps-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-form { padding: 40px 30px; }
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px 20px; }
    .logo-img { height: 40px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .form-row { grid-template-columns: 1fr; }
    .phone-huge { font-size: 3rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .section-header h2 { font-size: 2.2rem; }
}