/* ==========================================================================
   Variables y Configuración Base
   ========================================================================== */
   :root {
    /* Paleta de Colores - Premium Construcción (Basado en el Logo) */
    --primary: #8ac123;      /* Verde Limón (Hoja del logo) */
    --primary-dark: #70a117;
    --secondary: #002b5c;    /* Azul Marino Oscuro (Texto del logo) */
    --text-main: #334155;    /* Texto Principal */
    --text-muted: #64748b;   /* Texto Secundario */
    --bg-light: #f8fafc;     /* Fondo Claro */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Tipografía */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Efectos y Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Tipografía y Utilidades
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 600;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    /* Imagen de respaldo si el video falla o carga lento */
    background-image: url('../material fotografico/Garantia-de-arriendo-en-Chile-1024x683-1-600x400.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 43, 92, 0.7), rgba(0, 43, 92, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Servicios (Grid de Tarjetas)
   ========================================================================== */
.services {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Beneficios Section
   ========================================================================== */
.benefits {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.benefits-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Slider de Beneficios */
.slider-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1 / 1;
    max-height: 500px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background var(--transition-fast);
}

.slider-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dot.active {
    background: var(--primary);
}

.benefits-content {
    flex: 1;
}

.benefits-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefits-list i {
    font-size: 2rem;
    color: var(--primary);
    background: #fef3c7;
    padding: 1rem;
    border-radius: 50%;
}

.benefits-list strong {
    display: block;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Nuestro Equipo (Ventas)
   ========================================================================== */
.team {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.team-grid {
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-img-wrapper {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--border-color);
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-member:hover .team-img-wrapper {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: var(--bg-light);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col p {
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.footer-col i {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #111827;
    text-align: center;
    padding: 1.5rem 0;
    color: #9ca3af;
}

/* ==========================================================================
   Botón WhatsApp Flotante
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    .header .nav {
        display: none; /* Idealmente reemplazar con menú hamburguesa en JS */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .benefits-layout {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
