/* --- 1. RESET Y ESTRUCTURA BASE --- */
:root {
    --primary-green: #2e7d32;
    --primary-blue: #1565c0;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --sms-color: #2196f3;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    width: 100%;
    max-width: 100%; 
    overflow-x: hidden !important; 
    position: relative;
}

header, section, footer {
    width: 100%; max-width: 100%; overflow-x: hidden;
}

/* --- 2. HEADER --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; top: 0; left: 0;
    width: 100%; z-index: 9999;
    transition: transform 0.3s ease-in-out;
    overflow: visible;
}
.header-hidden { transform: translateY(-100%); }

.nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%;
}

.logo img {
    max-height: 60px; width: auto; display: block; object-fit: contain;
}

/* --- 3. HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    background-attachment: scroll;
    color: var(--text-light);
    height: 90vh;
    display: flex; justify-content: center; align-items: center; text-align: center;
    padding: 0 20px;
    width: 100%;
}
.hero-content { width: 100%; max-width: 800px; padding: 0 15px; }
.hero h1 { 
    font-size: 2.5rem; margin-bottom: 1rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); line-height: 1.2;
    word-wrap: break-word; 
}
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; font-weight: 500; }

/* --- 4. BOTONES --- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: bold; transition: all 0.3s ease;
    border: none; cursor: pointer; font-size: 1rem;
}
.btn-sms { background-color: var(--sms-color); color: white; }
.btn-sms:hover { background-color: #1976d2; transform: translateY(-3px); }
.btn-sms-small {
    background-color: var(--sms-color); color: white;
    padding: 8px 16px; border-radius: 20px;
    font-size: 0.9rem; text-decoration: none; font-weight: bold;
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-sms-small:hover { background-color: #1976d2; }

/* --- 5. SERVICIOS (SEPARACIÓN GARANTIZADA) --- */
.services { padding: 4rem 20px; background: var(--bg-light); text-align: center; width: 100%; }
.services h2 {
    font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary-green);
    position: relative; display: inline-block;
}
.services h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-blue); margin: 10px auto 0; border-radius: 2px;
}

/* Configuración de la rejilla (Grid) */
.service-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem; /* Aumenté el espacio entre tarjetas en PC */
    max-width: 1200px; margin: 0 auto; width: 100%;
}

.card {
    background: white; padding: 2rem; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease;
    display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%;
}
.card:hover { transform: translateY(-10px); }
.icon { font-size: 3rem; margin-bottom: 1rem; }

/* IMÁGENES DE FONDO */
.card-cleaning {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), 
                url('imagenes/profesional cleaning.jpg');
    background-size: cover; background-position: center;
}
.card-landscaping {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), 
                url('imagenes/Landscaping.jpg');
    background-size: cover; background-position: center;
}
.card-washing {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), 
                url('imagenes/powerwashing.png');
    background-size: cover; background-position: center;
}

/* TEXTO NEGRITA */
.card h3 {
    color: var(--primary-blue); margin-bottom: 1rem; font-size: 1.5rem; font-weight: 900;
}
.card p {
    font-weight: 700; color: #000;
}

/* --- 6. VIDEO --- */
.video-section { padding: 4rem 20px; background: #fff; text-align: center; width: 100%; }
.video-container {
    max-width: 900px; margin: 0 auto; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative;
    cursor: pointer; background: black; width: 100%;
}
.video-container video { width: 100%; display: none; }
.video-cover { width: 100%; display: flex; justify-content: center; align-items: center; }
.video-cover img { width: 100%; height: auto; display: block; }
.play-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(46, 125, 50, 0.9); color: white;
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 25px;
    animation: pulse 2s infinite;
}
.video-container.video-active .video-cover { display: none; }
.video-container.video-active video { display: block; }

/* --- 7. GALERÍA --- */
.recent-work { padding: 4rem 0; background: var(--bg-light); text-align: center; width: 100%; }
.gallery-container {
    display: flex; overflow-x: auto; gap: 15px; padding: 20px;
    scrollbar-width: none; cursor: grab; width: 100%; padding-left: 20px;
    max-width: 100%;
}
.gallery-container::-webkit-scrollbar { display: none; }
.gallery-item {
    flex: 0 0 300px; height: 350px; border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* --- 8. FORMULARIO --- */
.contact-form-section { padding: 4rem 20px; background: white; text-align: center; width: 100%; }
.form-container {
    max-width: 600px; margin: 0 auto; background: #f9f9f9; padding: 2rem;
    border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); text-align: left;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--primary-green); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem;
}
.form-group textarea { resize: vertical; height: 100px; }
.file-upload-note { font-size: 0.85rem; color: #666; margin-top: 5px; }
.submit-btn {
    background-color: var(--primary-blue); color: white; width: 100%; padding: 15px;
    font-size: 1.1rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s;
}
.submit-btn:hover { background-color: #0d47a1; }

/* --- 9. FOOTER --- */
footer { background: #1a1a1a; color: white; padding: 3rem 20px; text-align: center; width: 100%; }
.contact-details { margin: 25px 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.contact-details a {
    color: #fff; text-decoration: none; font-size: 1.1rem; display: flex; align-items: center; gap: 10px;
}
.contact-details a:hover { color: #25D366; }
.social-links { margin: 2rem 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.social-btn {
    color: white; border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px; border-radius: 30px; text-decoration: none;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.social-btn:hover { background: white; color: #333; }
.social-btn.fb:hover { color: #3b5998; }
.social-btn.ig:hover { color: #E1306C; }
.social-btn.tk:hover { color: black; }
.social-btn.sms:hover { color: var(--sms-color); }

/* --- 10. ANIMACIONES --- */
.hidden { opacity: 0; transition: 0.8s; transform: translateY(20px); }
.show { opacity: 1; transform: translateY(0) translateX(0) !important; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}
.pulse-btn { animation: pulse 2s infinite; }
@media (min-width: 769px) {
    .from-left { transform: translateX(-50px); }
    .from-right { transform: translateX(50px); }
    .from-top { transform: translateY(-50px); }
    .from-bottom { transform: translateY(50px); }
}
@media (max-width: 768px) {
    .hidden, .from-left, .from-right, .from-top, .from-bottom { transform: translateY(20px) !important; }
}

/* --- 11. RESPONSIVE MÓVIL (Con separación forzada) --- */
@media (max-width: 768px) {
    body, h1, h2, h3, p, a { text-align: center !important; }
    
    .nav-container { flex-direction: row; gap: 10px; padding: 10px 15px; }
    .logo img { max-height: 50px; }
    .btn-sms-small { font-size: 0.8rem; padding: 6px 12px; }
    
    .hero { padding: 0 15px; height: 85vh; }
    .hero h1 { font-size: 1.8rem; }
    
    /* SEPARACIÓN DE TARJETAS EN MÓVIL */
    .service-grid { 
        grid-template-columns: 1fr; 
        gap: 40px !important; /* Espacio forzado entre tarjetas */
    }
    
    /* MARGEN EXTRA DE SEGURIDAD PARA LAS TARJETAS */
    .card {
        margin-bottom: 20px;
    }
    
    .gallery-item { flex: 0 0 85vw; height: 300px; }
    .contact-details { align-items: center; }
    .contact-details a { justify-content: center; }
    .cta-buttons .btn { width: 100%; max-width: 320px; margin: 5px auto; display: block; }
}

/* Link Desarrollador sin estilo */
.dev-link {
    color: white !important; text-decoration: none !important;
    font-weight: bold; cursor: default;
}