/* ========================================
   YOTUPLACASOLARES - Estilos Principales
   ======================================== */

/* Variables CSS */
:root {
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-secondary: #10b981;
    --color-secondary-dark: #059669;
    --color-dark: #1f2937;
    --color-light: #f8fafc;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --gradient-solar: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    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(--color-dark);
    background-color: var(--color-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Contenedor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER Y NAVEGACION
   ======================================== */
header {
    background: white;
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-solar);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
}

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

/* Telefono Header */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-solar);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.phone-icon {
    font-size: 1.1rem;
}

.phone-number {
    letter-spacing: 0.5px;
}

/* Navegacion */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

/* Menu hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Dropdown localidades */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--color-dark);
}

.dropdown-content a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(31, 41, 55, 0.7) 100%),
                url('../img/hero-solar.jpg') center/cover no-repeat;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-solar);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-dark);
}

.btn-green {
    background: var(--gradient-green);
    color: white;
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-header h2 span {
    color: var(--color-primary);
}

/* ========================================
   SERVICIOS
   ======================================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-light);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-solar);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========================================
   BENEFICIOS
   ======================================== */
.benefits {
    background: linear-gradient(135deg, var(--color-dark) 0%, #374151 100%);
    color: white;
}

.benefits .section-header h2 {
    color: white;
}

.benefits .section-header p {
    color: rgba(255,255,255,0.8);
}

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

.benefit-item {
    text-align: center;
    padding: 30px;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit-item p {
    color: rgba(255,255,255,0.7);
}

/* ========================================
   POR QUE ELEGIRNOS
   ======================================== */
.why-us {
    background: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.why-us-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.why-us-content p {
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.check-list {
    margin: 20px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    color: var(--color-dark);
}

.check-list li::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* ========================================
   LOCALIDADES / ZONAS
   ======================================== */
.locations {
    background: var(--color-light);
}

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

.location-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.location-card h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.location-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.location-card .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    background: var(--gradient-solar);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta .btn {
    background: white;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 18px 40px;
}

.cta .btn:hover {
    background: var(--color-dark);
    color: white;
}

/* ========================================
   PAGINAS LOCALIDADES
   ======================================== */
.hero-local {
    min-height: 60vh;
    padding-top: 100px;
}

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

.local-intro {
    background: white;
}

.local-intro-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.local-services {
    background: var(--color-light);
}

.local-benefits {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--color-light);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-gray);
    margin-top: 5px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* ========================================
   FORMULARIO CONTACTO
   ======================================== */
.contact-info-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    font-size: 2rem;
}

.contact-info-item strong {
    display: block;
    color: var(--color-dark);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-info-item a {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-info-item a:hover {
    color: var(--color-primary-dark);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-dark);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .menu-toggle {
        display: flex;
    }

    .header-phone {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        padding: 15px 25px;
        font-size: 1.1rem;
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
    }

    .header-phone:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    .header-container .header-phone {
        display: none;
    }

    body::after {
        content: '';
        display: block;
        height: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 0;
        transition: var(--transition);
    }

    .contact-info-box {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .contact-info-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--color-light);
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Secciones mobile */
    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* CTA mobile */
    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 25px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
