/* --- VARIABLES Y RESET --- */
:root {
    --primary-orange: #ff5722;
    --primary-hover: #e64a19;
    --dark-gray: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --border-radius-card: 20px;
    --border-radius-btn: 50px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(255, 87, 34, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { line-height: 1.7; color: var(--text-color); background-color: var(--white); overflow-x: hidden; width: 100%; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- ANIMACIONES --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- TOP BAR --- */
.top-bar { background-color: var(--dark-gray); color: var(--white); padding: 10px 5%; text-align: center; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; }
.top-bar span { color: var(--primary-orange); font-weight: 700; }

/* --- HEADER --- */
header { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: transform 0.3s ease-in-out; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; max-width: 1300px; margin: 0 auto; }
.logo img { height: 75px; width: auto; transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 1rem; color: var(--dark-gray); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background-color: var(--primary-orange); transition: width 0.3s; border-radius: 2px; }
.nav-links a:hover { color: var(--primary-orange); }
.nav-links a:hover::after { width: 100%; }
.btn-call { background: linear-gradient(45deg, var(--primary-orange), #ff8a50); color: var(--white); padding: 12px 25px; border-radius: var(--border-radius-btn); font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3); transition: transform 0.3s, box-shadow 0.3s; }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230, 81, 0, 0.4); }

/* --- HERO --- */
.hero { background-image: url('imagenes/imagen1.jpeg'); background-size: cover; background-position: center; height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: inherit; background-size: cover; background-position: center; animation: zoomEffect 20s infinite alternate; z-index: -1; }
@keyframes zoomEffect { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5)); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.hero-content { text-align: center; color: var(--white); padding: 20px; max-width: 800px; width: 100%; }
.hero-subtitle { display: inline-block; background: rgba(230, 81, 0, 0.2); border: 1px solid var(--primary-orange); padding: 5px 15px; border-radius: 50px; font-size: 1rem; letter-spacing: 3px; font-weight: 700; color: #ffccbc; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: 4rem; margin: 0 0 15px 0; text-transform: uppercase; font-weight: 800; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); word-wrap: break-word; }
.hero p { font-size: 1.6rem; font-weight: 300; margin-bottom: 10px; opacity: 0.9; }
.hero-tagline { font-size: 1.2rem !important; font-weight: 600 !important; color: var(--primary-orange); margin-bottom: 40px !important; text-transform: uppercase; letter-spacing: 2px; }
.btn-cta { background: var(--white); color: var(--primary-orange); padding: 18px 45px; font-size: 1.2rem; font-weight: 800; border-radius: var(--border-radius-btn); box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: all 0.3s; border: 2px solid var(--white); display: inline-block; max-width: 100%; white-space: normal; text-align: center; }
.btn-cta:hover { background: var(--primary-orange); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* --- SECTIONS --- */
.section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.bg-light { background-color: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; color: var(--dark-gray); font-weight: 800; position: relative; padding-bottom: 20px; text-transform: uppercase; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 6px; background: var(--primary-orange); border-radius: 10px; }

/* --- SERVICES --- */
.services-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.service-card { background: var(--white); padding: 50px 35px; border-radius: var(--border-radius-card); box-shadow: var(--shadow-soft); flex: 1 1 300px; text-align: center; transition: all 0.4s ease; border-bottom: 5px solid transparent; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-bottom: 5px solid var(--primary-orange); }
.service-card h3 { margin: 20px 0 15px; font-size: 1.5rem; color: var(--dark-gray); font-weight: 700; }
.card-icon { font-size: 3rem; margin-bottom: 15px; }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.gallery-item { height: 350px; border-radius: var(--border-radius-card); overflow: hidden; position: relative; box-shadow: var(--shadow-soft); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s; }
.gallery-overlay p { color: white; font-weight: 700; border: 2px solid white; padding: 10px 20px; border-radius: 50px; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* --- VIDEOS --- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; }
.video-wrapper { position: relative; background: var(--white); border-radius: var(--border-radius-card); box-shadow: var(--shadow-soft); overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.video-wrapper:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.video-wrapper video { width: 100%; height: 100%; background-color: #000; aspect-ratio: 9/16; max-height: 550px; object-fit: cover; display: block; border-radius: var(--border-radius-card) var(--border-radius-card) 0 0; }
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.3); z-index: 10; transition: background 0.3s; }
.play-icon { width: 80px; height: 80px; background: rgba(255, 87, 34, 0.9); color: white; font-size: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; padding-left: 6px; box-shadow: 0 0 30px rgba(0,0,0,0.5); border: 4px solid #fff; animation: pulsePlay 2s infinite; }
@keyframes pulsePlay { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.video-info { padding: 15px; background: white; text-align: center; }
.video-caption { font-weight: 700; color: var(--dark-gray); font-size: 1.1rem; }

/* --- FORM --- */
.form-container { max-width: 650px; margin: 0 auto; background: var(--white); padding: 50px; border-radius: var(--border-radius-card); box-shadow: var(--shadow-soft); border-top: 6px solid var(--primary-orange); }
.contact-form label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--dark-gray); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 12px; margin-bottom: 25px; font-size: 1rem; transition: border-color 0.3s; background: #fafafa; }
.contact-form input[type="file"] { background: white; padding: 10px; border: 2px dashed #ddd; cursor: pointer; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-orange); background: white; }
.btn-submit { width: 100%; background: linear-gradient(45deg, var(--primary-orange), #ff8a50); color: var(--white); padding: 18px; border: none; border-radius: var(--border-radius-btn); font-size: 1.2rem; font-weight: 800; cursor: pointer; text-transform: uppercase; transition: all 0.3s; box-shadow: 0 5px 15px rgba(230, 81, 0, 0.3); }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(230, 81, 0, 0.4); }

/* --- FOOTER --- */
footer { background-color: var(--dark-gray); color: var(--white); padding: 80px 5% 40px; text-align: center; }
.footer-content h2 { font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.contact-grid { display: flex; justify-content: center; gap: 50px; margin: 50px 0; flex-wrap: wrap; }
.contact-box h3 { color: #888; font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }
.phone-link, .email-link { display: block; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.email-link { font-size: 1.2rem; color: var(--primary-orange); }
.phone-link:hover, .email-link:hover { color: var(--primary-orange); transform: scale(1.05); display: inline-block; }
.copyright-section { border-top: 1px solid #333; padding-top: 30px; font-size: 0.9rem; color: #777; }
.webzter-credit { margin-top: 15px; opacity: 0.7; }
.webzter-credit a { color: var(--primary-orange); font-weight: 700; border-bottom: 1px dotted var(--primary-orange); }
.webzter-credit a:hover { color: var(--white); }

/* --- REDES SOCIALES (NUEVO) --- */
.social-section { margin-top: 30px; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.social-btn {
    width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 81, 0, 0.4);
}

/* --- FLOAT BTN --- */
.float-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(45deg, var(--primary-orange), #ff8a50);
    color: var(--white);
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(230, 81, 0, 0.4); z-index: 2500;
    transition: all 0.3s ease; animation: pulse 2s infinite; cursor: pointer;
}
.float-btn:hover { transform: scale(1.1) rotate(10deg); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(230, 81, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0); } }

/* --- LIGHTBOX --- */
.lightbox-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: zoomIn 0.4s; }
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: var(--primary-orange); transform: rotate(90deg); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-container { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    /* Botón Hero Móvil */
    .btn-cta { padding: 15px 20px; font-size: 0.95rem; width: 100%; max-width: 280px; white-space: normal; line-height: 1.3; }
    .section { padding: 60px 5%; }
    .form-container { padding: 30px 20px; }
    .contact-grid { flex-direction: column; gap: 40px; }
    .float-btn { width: 55px; height: 55px; bottom: 20px; right: 20px; font-size: 24px; }
    .close-btn { top: 10px; right: 20px; font-size: 40px; }
}