/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header fijo sin crear espacio */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1001;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background: rgba(186, 60, 38, 0.1);
    color: #BA3C26;
    transform: translateY(-2px);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #BA3C26;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::before {
    width: 70%;
}

.btn-cotizar {
    text-decoration: none;
    background: linear-gradient(135deg, #BA3C26, #e74c3c);
    color: white;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 60, 38, 0.3);
    white-space: nowrap;
    min-width: max-content;
}

.btn-cotizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 60, 38, 0.4);
}

/* Menú Móvil - ESTILOS CORREGIDOS */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    order: 1;
    padding: 8px;
    z-index: 1002;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animación del menú hamburguesa */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MENÚ FLOTANTE DE REDES SOCIALES - COMPATIBLE CON EDGE */
.social-floating-menu {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 8px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
}

.social-floating-icon:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-3px);
}

/* BOTÓN DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

/* Slider Hero - RESPONSIVE MEJORADO */
.hero-slider {
    margin-top: 80px; /* Altura del header */
    height: calc(100vh - 80px); /* Ajustar altura */
    min-height: calc(600px - 80px);
    max-height: calc(800px - 80px);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    padding: 2.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #2c3e50;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #5d6d7e;
    line-height: 1.5;
    font-weight: 400;
}

.btn-hero {
    background: linear-gradient(135deg, #BA3C26, #e74c3c);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(186, 60, 38, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(186, 60, 38, 0.6);
}

/* Controles del Slider */
.slider-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #2c3e50;
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-nav:hover {
    background: #2c3e50;
    color: white;
}

.slider-prev {
    left: 25px;
}

.slider-next {
    right: 25px;
}

/* Sección de diagramas */
.diagrams-section {
    background: #f8dc90;
    padding: 80px 0;
}

.diagrams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.diagram-card {
    background: #e4eeea;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.diagram-card:hover {
    transform: translateY(-5px);
}

.diagram-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #e4eeea;
    padding: 2rem;
}

.diagram-content {
    padding: 2rem;
    text-align: center;
}

.diagram-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card ul {
    padding-left: 1.2rem;
}

.about-card li {
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Cotización Section */
.quotation {
    padding: 80px 0;
    background: white;
}

/* Formularios */
.quotation-form, .contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: 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 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sección del Mapa */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.google-map {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #e9ecef;
    position: relative;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 1024px) {
    nav ul {
        gap: 0.6rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .btn-cotizar {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-slider {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .google-map {
        height: 400px;
    }
    
    .map-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1;
        min-width: 250px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 15px;
    }
    
    .mobile-menu {
        display: flex !important;
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.3s ease;
    }
    
    nav ul.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul li {
        width: 100%;
        height: auto;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        white-space: normal;
        font-size: 1rem;
    }
    
    nav ul li a:hover {
        background: rgba(186, 60, 38, 0.1);
        transform: none;
    }
    
    nav ul li a::before {
        display: none;
    }
    
    .btn-cotizar {
        margin: 1rem 2rem;
        text-align: center;
        border-radius: 25px;
        background: linear-gradient(135deg, #BA3C26, #e74c3c);
        border: none;
        display: block;
        white-space: nowrap;
        padding: 1rem 1.5rem;
    }
    
    /* Menú flotante de redes sociales en móvil */
    .social-floating-menu {
        right: 10px;
        padding: 12px 6px;
        gap: 10px;
    }
    
    .social-floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Hero responsive */
    .hero-slider {
        margin-top: 70px;
        height: calc(100vh - 70px);
        min-height: calc(500px - 70px);
        max-height: calc(700px - 70px);
    }
    
    .hero-content {
        padding: 1.8rem;
        width: 92%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .slider-nav {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .diagrams-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .diagram-image {
        height: 300px;
        padding: 1rem;
    }
    
    .quotation-form, .contact-form {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .google-map {
        height: 350px;
    }
    
    .map-info {
        flex-direction: column;
    }
    
    .info-card {
        min-width: auto;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .header-container {
        padding: 0.7rem 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav ul {
        top: 70px;
    }
    
    nav ul li a {
        padding: 0.9rem 1.5rem;
    }
    
    .btn-cotizar {
        margin: 0.8rem 1.5rem;
        padding: 0.9rem 1.2rem;
    }
    
    .social-floating-menu {
        right: 8px;
        padding: 10px 5px;
        gap: 8px;
    }
    
    .social-floating-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 15px;
    }
    
    .hero-slider {
        margin-top: 60px;
        height: calc(100vh - 60px);
        min-height: calc(400px - 60px);
        max-height: calc(500px - 60px);
    }
    
    .hero-content {
        padding: 1.5rem;
        width: 94%;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-controls {
        bottom: 15px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .about-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .google-map {
        height: 300px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-slider {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
}

/* ESTILOS ESPECÍFICOS PARA EDGE */
@supports (-ms-ime-align: auto) {
    /* Edge-specific styles */
    .social-floating-menu {
        background: #ffffff !important;
        border: 2px solid #e0e0e0 !important;
    }
    
    .hero-content {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Asegurar que los grids funcionen */
    .diagrams-grid,
    .about-grid,
    .services-grid,
    .footer-content,
    .contact-content {
        display: -ms-grid !important;
        display: grid !important;
    }
}

/* Para versiones muy antiguas de Edge */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE/Edge fallbacks */
    .social-floating-menu {
        background: #ffffff;
        border: 2px solid #e0e0e0;
        right: 10px;
    }
    
    .hero-content {
        background: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    /* Fallback para flexbox gap en Edge */
    nav ul {
        gap: 0;
        margin: 0 -0.4rem;
    }
    
    nav ul li {
        margin: 0 0.4rem;
    }
    
    .social-floating-menu {
        gap: 0;
    }
    
    .social-floating-icon {
        margin-bottom: 8px;
    }
    
    .social-floating-icon:last-child {
        margin-bottom: 0;
    }
}


/* --- Mejoras adicionales Responsive --- */
@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        max-height: none;
    }

    .slide,
    .slide-image {
        height: auto;
        min-height: 300px;
    }

    .slide-image {
        object-fit: contain;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 1.5rem auto;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
}





.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2,
.section-title p {
    display: block;
    width: 100%;
}

.section-title h2 {
    margin-bottom: 0.8rem;
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
}


@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    section {
        padding: 40px 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
/* carlos */
/* ======== AJUSTE RESPONSIVE DEFINITIVO DEL SLIDER ======== */
@media (max-width: 1024px) {
    .hero-slider {
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
    }

    .slide {
        position: relative;
        height: auto !important;
        opacity: 1;
        display: block;
    }

    .slide-image {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
        max-height: 60vh;
    }

    .hero-content {
        position: static;
        transform: none;
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .slider-nav,
    .slider-controls {
        display: none !important; /* opcional: oculta flechas en móvil */
    }
}

@media (max-width: 600px) {
    .slide-image {
        max-height: 45vh !important;
    }
}





/* Estilos para reCAPTCHA */
.recaptcha-container {
    margin: 1.5rem 0;
    text-align: center;
}

.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.recaptcha-error {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive para reCAPTCHA */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}






/* ====================== SLIDER RESPONSIVE ====================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.slider-container {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  text-align: center;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

/* Imágenes */
.slide-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #fafafa;
  display: block;
}

/* Contenido */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 15px;
  max-width: 90%;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.hero-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.btn-hero {
  background: linear-gradient(135deg, #BA3C26, #e74c3c);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(186, 60, 38, 0.5);
}

/* Controles */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #2c3e50;
  color: white;
}

.slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .slide-image {
    max-height: 70vh;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .slide-image {
    max-height: 60vh;
    object-fit: contain;
  }
  .hero-content {
    position: static;
    transform: none;
    margin: 1rem auto;
    padding: 1.5rem;
    max-width: 90%;
  }
  .hero-content h2 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .slider-nav {
    display: none; /* oculta flechas en móvil */
  }
}

@media (max-width: 480px) {
  .slide-image {
    max-height: 50vh;
  }
  .hero-content h2 {
    font-size: 1.3rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
}



/* Agregar esto al final de tu style.css */

/* Eliminar espacio entre header y slider */
.hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Asegurar que el slider comience justo después del header */
.hero-slider .slider-container {
    margin-top: 0;
}

/* Ajustar la posición del primer slide */
.slide:first-child {
    margin-top: 0;
}

/* Si persiste el espacio, forzar la eliminación */
body {
    margin: 0;
    padding: 0;
}

.hero-slider {
    position: relative;
    top: -1px; /* Compensa cualquier borde del header */
}












/* Estadísticas */
.projects-stats {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive para estadísticas */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}