/* Reset y Variables */
:root {
    --color-primary: #ff8c00;
    --color-secondary: #1a1a1a;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

/* Header */
.header {
    background-color: var(--color-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-text small {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}

.header-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

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

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
}

.btn-hero:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit {
    background-color: var(--color-primary);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.btn-submit:hover {
    background-color: #e67e00;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-badge svg {
    color: var(--color-primary);
}

.feature-badge span {
    font-size: 14px;
    font-weight: 500;
}

/* Secciones */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

/* Servicios */
.servicios {
    background-color: var(--color-bg-alt);
}

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

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

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

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), #ffaa33);
    border-radius: 50%;
    color: white;
}

.servicio-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.servicio-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Zonas */
.zonas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.zona-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.zona-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.zona-card svg {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.zona-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Ventajas */
.ventajas {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
    color: white;
}

.ventajas .section-title {
    color: white;
}

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

.ventaja-item {
    text-align: center;
}

.ventaja-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 15px;
    opacity: 0.8;
}

.ventaja-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ventaja-item p {
    color: #ddd;
    line-height: 1.6;
}

/* Reseñas Google */
.resenas {
    background-color: var(--color-bg);
}

.resenas-google-badge {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid #e8e8e8;
}

.google-badge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.google-badge-header span {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.google-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 15px;
}

.google-badge-text {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-google-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-google-review:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google-review svg {
    stroke: white;
}

/* Contacto */
.contacto {
    background-color: var(--color-bg-alt);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-urgente {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contacto Info */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item strong {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.info-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.info-item p {
    color: var(--color-text-light);
    margin: 0;
}

.whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #25D366, #20ba5a);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-brand img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-tagline {
    color: #aaa;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

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

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

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .servicios-grid,
    .zonas-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacto-form {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 20px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

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

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

.hero-content,
.servicio-card,
.zona-card,
.ventaja-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Optimización de rendimiento */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navegación de ciudades */
.header-nav {
    position: relative;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle svg {
    transition: transform 0.3s ease;
}

.nav-toggle.active svg {
    transform: rotate(180deg);
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
    background-color: rgba(255, 140, 0, 0.1);
}

/* Estilo para zona actual en sección de zonas */
.zona-actual {
    background-color: rgba(255, 140, 0, 0.1);
    border: 2px solid var(--color-primary);
}

/* Mobile */
@media (max-width: 768px) {
    .header-nav {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }

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

    .nav-menu {
        width: 100%;
        right: auto;
        left: 0;
    }
}
