/* ===== Reset y Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* ===== Banner de Precio ===== */
.price-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: var(--white);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.price-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.price-icon {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    flex-shrink: 0;
}

.price-banner-content strong {
    font-size: 20px;
    font-weight: 700;
    margin-left: 8px;
    color: #2ecc71;
}

/* Ajuste del hero para el banner */
#inicio {
    margin-top: 50px;
}

/* Responsive para el banner */
@media (max-width: 768px) {
    .price-banner {
        top: 60px;
    }
    
    .price-banner-content {
        gap: 8px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .price-icon {
        width: 20px;
        height: 20px;
    }
    
    .price-banner-content strong {
        font-size: 18px;
        color: #2ecc71;
    }
    
    #inicio {
        margin-top: 45px;
    }
}

@media (max-width: 480px) {
    .price-banner-content {
        gap: 6px;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .price-icon {
        width: 18px;
        height: 18px;
    }
    
    .price-banner-content strong {
        font-size: 16px;
        color: #2ecc71;
    }
    
    #inicio {
        margin-top: 40px;
    }
}

/* ===== Header / Navegación ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ===== Secciones ===== */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Sección Hero (Inicio) ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), 
                url('resources/img/landspace-principal.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

.btn-block {
    width: 100%;
}

/* ===== Sección Catálogo ===== */
.catalog-section {
    background: var(--bg-light);
    width: 100%;
    overflow-x: hidden;
}

/* Tira de Marcas - Slider Horizontal Infinito */
.brands-section {
    margin: 3rem 0 4rem;
    padding: 2.5rem 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.brands-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 10px;
}

.brands-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-weight: 600;
    position: relative;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

.brands-disclaimer {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0.9rem 1.25rem;
    background: #f4f8ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.brands-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.brands-nav-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
}

.brands-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.brands-nav-btn:active {
    transform: scale(0.95);
}

.brands-nav-btn svg {
    width: 24px;
    height: 24px;
}

.brands-container {
    overflow: hidden;
    padding: 1rem 0 2rem;
    position: relative;
    width: 100%;
    flex: 1;
}

/* Gradientes laterales para efecto de desvanecimiento */
.brands-container::before,
.brands-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.brands-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.brands-slider {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scroll-brands 40s linear infinite;
    width: max-content;
}

/* Pausar animación al hover */
.brands-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
    min-width: 150px;
    height: 100px;
}

.brand-item:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-logo-img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: var(--transition);
}

.brand-item:hover .brand-logo-img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.1);
}

/* ===== Sección de Pasos del Servicio ===== */
.service-steps-section {
    margin: 4rem 0;
    padding: 3rem 0;
    text-align: center;
}

.steps-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.steps-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.step-icon {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon svg {
    filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.2));
}

.step-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

/* Conectores entre pasos (solo en desktop) */
@media (min-width: 992px) {
    .step-card:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -2rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        color: var(--primary-color);
        font-weight: 700;
        opacity: 0.3;
    }
}

/* ===== Introducción al Catálogo ===== */
.catalog-intro {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 0 1rem;
}

.catalog-intro-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.catalog-intro-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #357abd);
    border-radius: 2px;
}

.catalog-intro-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    perspective: 1000px;
    justify-items: center;
    width: 100%;
    max-width: 100%;
}

/* Flip Card Container */
.flip-card {
    background: transparent;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
    max-width: min(400px, 100%);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-card-front {
    background: var(--white);
    color: var(--text-color);
}

.flip-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    transform: rotateY(180deg);
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

/* Scrollbar personalizado para el reverso de las tarjetas */
.flip-card-back::-webkit-scrollbar {
    width: 6px;
}

.flip-card-back::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.flip-card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.flip-card-back::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.flip-card:hover .flip-card-front {
    box-shadow: var(--shadow-lg);
}

.catalog-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
}

.catalog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.catalog-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.click-hint {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.flip-card-front .click-hint:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Back of Card */
.back-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
}

.service-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.service-intro {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.95;
}

.service-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.brands-list li {
    font-weight: 500;
    font-size: 0.92rem;
}

.flip-card-back .click-hint {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.flip-card-back .click-hint:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Sección Quiénes Somos ===== */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    text-align: left;
}

.about-text .section-title {
    text-align: left;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Misión y Visión */
.mission-vision-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.mission-vision-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.mission-vision-card:hover::before {
    top: -40%;
    right: -10%;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card-description {
    line-height: 1.8;
    font-size: 1.05rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ===== Sección Área de Cobertura ===== */
.coverage-section {
    background: var(--white);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.coverage-map {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 500px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverage-badge {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.coverage-badge svg {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.coverage-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coverage-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.coverage-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.municipalities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.municipality-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.municipality-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.municipality-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.municipality-item span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
}

.coverage-disclaimer {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.disclaimer-icon {
    color: #ff9800;
    flex-shrink: 0;
}

.disclaimer-text {
    flex: 1;
}

.disclaimer-text strong {
    display: block;
    color: #f57c00;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.disclaimer-text p {
    color: #795548;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== Sección Contacto ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.info-text p {
    color: var(--text-light);
    line-height: 1.8;
}

.phone-link,
.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover,
.email-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.phone-link::before {
    content: "📱";
    font-size: 1.2rem;
}

.email-link::before {
    content: "✉️";
    font-size: 1.2rem;
}

/* Formulario de Contacto */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

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

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

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.footer-disclaimer strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    /* Navegación Mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Secciones */
    .section {
        padding: 80px 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Grid ajustes */
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }

    .flip-card {
        height: 400px;
        max-width: 100%;
        width: 100%;
    }

    .catalog-section {
        overflow-x: hidden;
    }

    .service-list li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    /* Cobertura responsive */
    .coverage-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-image {
        min-height: 350px;
    }

    .municipalities-grid {
        grid-template-columns: 1fr;
    }

    .coverage-title {
        font-size: 1.8rem;
    }

    /* Marcas responsive */
    .brands-section {
        margin: 2rem 0 3rem;
        padding: 2rem 0;
        border-radius: 10px;
    }

    .brands-nav-btn {
        width: 40px;
        height: 40px;
    }

    .brands-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .brands-title {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .brands-disclaimer {
        margin: 0.5rem 1rem 1.5rem;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .brands-slider {
        gap: 2rem;
        animation: scroll-brands 30s linear infinite;
    }

    /* Pasos del servicio responsive */
    .service-steps-section {
        margin: 3rem 0;
        padding: 2rem 0;
    }

    .steps-title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .steps-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .steps-container {
        gap: 3rem;
        padding: 0 1rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-description {
        font-size: 0.95rem;
    }

    /* Introducción al catálogo responsive */
    .catalog-intro {
        margin: 3rem 0 1.5rem;
    }

    .catalog-intro-title {
        font-size: 1.6rem;
    }

    .catalog-intro-subtitle {
        font-size: 1rem;
    }

    .brands-container::before,
    .brands-container::after {
        width: 50px;
    }

    .brand-item {
        min-width: 130px;
        height: 90px;
        padding: 0.75rem 1.25rem;
    }

    .brand-logo-img {
        max-width: 100px;
        max-height: 70px;
    }

    .section-subtitle {
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-vision-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section-subtitle {
        padding: 0 1rem;
    }

    .section-title {
        padding: 0 1rem;
    }

    .footer-disclaimer {
        padding: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .footer-disclaimer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .logo h2 {
        font-size: 1.3rem;
    }

    .catalog-grid {
        gap: 1.5rem;
        width: 100%;
    }

    .flip-card {
        height: 380px;
        width: 100%;
    }

    /* Marcas en móviles pequeños */
    .brands-section {
        margin: 1.5rem 0 2rem;
        padding: 1.5rem 0;
        border-radius: 8px;
    }

    .brands-wrapper {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    /* Pasos del servicio en móviles pequeños */
    .service-steps-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .steps-title {
        font-size: 1.4rem;
    }

    .steps-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .steps-container {
        gap: 2.5rem;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: -15px;
    }

    .step-icon svg {
        width: 40px;
        height: 40px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    /* Introducción al catálogo en móviles pequeños */
    .catalog-intro {
        margin: 2rem 0 1rem;
    }

    .catalog-intro-title {
        font-size: 1.4rem;
    }

    .catalog-intro-title::after {
        width: 60px;
        height: 3px;
    }

    .catalog-intro-subtitle {
        font-size: 0.95rem;
    }

    .brands-nav-btn {
        width: 35px;
        height: 35px;
    }

    .brands-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .brands-slider {
        gap: 1.5rem;
        animation: scroll-brands 25s linear infinite;
    }

    .brands-container::before,
    .brands-container::after {
        width: 30px;
    }

    .brand-item {
        min-width: 110px;
        height: 80px;
        padding: 0.5rem 1rem;
    }

    .brand-logo-img {
        max-width: 80px;
        max-height: 60px;
    }

    .brands-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .brands-disclaimer {
        margin: 0.5rem 0.75rem 1.25rem;
        font-size: 0.85rem;
        padding: 0.75rem 0.9rem;
    }

    .footer-disclaimer {
        padding: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-disclaimer p {
        font-size: 0.8rem;
    }

    .footer-disclaimer strong {
        font-size: 0.85rem;
    }
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */

.whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}
