/* Reset y variables */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #34495e;
    --text-light: #7f8c8d;
    --success: #27ae60;
    --warning: #f39c12;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    color: var(--text);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 200px;
    transition: var(--transition);
}

.floating-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.floating-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.floating-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-1 {
    top: 0;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sections comunes */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tendencias Section */
.tendencias {
    background: white;
}

.tendencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tendencia-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary);
}

.tendencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tendencia-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tendencia-icon i {
    font-size: 2rem;
    color: var(--secondary);
}

.tendencia-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.tendencia-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.tendencia-stats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: var(--light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Datos Section */
.datos {
    background: var(--light);
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dato-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.dato-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dato-header h3 {
    color: var(--primary);
}

.dato-header i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.chart-container {
    margin-bottom: 1rem;
}

.bar-chart {
    display: flex;
    align-items: end;
    height: 200px;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.bar {
    flex: 1;
    background: var(--secondary);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.bar:hover {
    opacity: 0.8;
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
}

.bar::before {
    content: attr(data-year);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.chart-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        var(--secondary) 0% 40%,
        #e74c3c 40% 65%,
        #f39c12 65% 85%,
        #27ae60 85% 100%
    );
    margin: 0 auto 2rem;
    position: relative;
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.color.residential { background: var(--secondary); }
.color.commercial { background: #e74c3c; }
.color.industrial { background: #f39c12; }
.color.vacation { background: #27ae60; }

.tabla-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tabla-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tabla {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    border: 1px solid var(--light);
    border-radius: 5px;
    overflow: hidden;
}

.tabla-header,
.tabla-row {
    display: contents;
}

.tabla-header > div,
.tabla-row > div {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    display: flex;
    align-items: center;
}

.tabla-header > div {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.tabla-row:nth-child(even) > div {
    background: #f8f9fa;
}

.trend {
    font-weight: 600;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--accent);
}

.impact {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.impact.high { background: var(--warning); }
.impact.very-high { background: var(--accent); }
.impact.medium { background: var(--secondary); }
.impact.low { background: var(--success); }

/* Análisis Section */
.analisis {
    background: white;
}

.analisis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.analisis-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.quote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.metricas {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.metrica {
    text-align: center;
}

.metrica-valor {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.metrica-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.analisis-visual {
    display: flex;
    justify-content: center;
}

.growth-chart {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.chart-line {
    display: flex;
    align-items: end;
    height: 200px;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 10px;
    position: relative;
}

.chart-line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light);
}

.point {
    flex: 1;
    position: relative;
}

.point::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--secondary);
}

.point::after {
    content: attr(data-value) '%';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

.chart-title {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

/* Servicios Section */
.servicios {
    background: var(--light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.servicio-icon i {
    font-size: 2rem;
    color: var(--secondary);
}

.servicio-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.servicio-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.servicio-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.servicio-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.servicio-features i {
    color: var(--success);
}

.btn-servicio {
    background: var(--secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-servicio:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Contacto Section */
.contacto {
    background: white;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacto-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contacto-details {
    margin-bottom: 2rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contacto-item i {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.contacto-item h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.contacto-form {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.form-check input {
    width: auto;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.footer-description {
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .analisis-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .metricas {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
.hero-visual {
  position: relative;
  width: 100%;
  height: 100vh; /* o el alto que necesites */
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena el espacio sin deformarse */
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre imagen y texto */
}

.logo-img {
  width: 250px;   /* Ajusta el tamaño según lo necesites */
  height: auto;  /* Mantiene la proporción */
}
