/* 
 * Redelco - Modern CSS Styles
 * Uses CSS Variables for easy theming
 */

 :root {
    --primary-color: #0097a7; /* Teal/Cyan from the logo/original site */
    --primary-dark: #006064;
    --secondary-color: #263238; /* Dark Slate */
    --accent-color: #ff6f00; /* Orange/Amber accent if needed */
    --text-color: #333333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --dark-bg: #1a202c;
    --transition: all 0.3s ease;
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

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

.bg-dark {
    background-color: var(--dark-bg);
}

.text-white {
    color: var(--white);
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 151, 167, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

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

.btn-whatsapp-large {
    background-color: #25D366;
    color: var(--white);
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

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

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

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

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

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

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
}

.btn-contact::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1558494949-efdeb6bf80c1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 60px; /* Offset fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
}

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

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-desc {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-list li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background-color: rgba(0, 151, 167, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.feature-item:hover i {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-desc {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
}

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

.social-links a:hover {
    background-color: var(--primary-color);
}

.contact-action {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.whatsapp-card i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 20px;
}

.whatsapp-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.whatsapp-card p {
    margin-bottom: 30px;
    color: #666;
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.my-float {
    margin-top: 0px;
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

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

    .nav-list li {
        margin: 16px 0;
    }

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

    .contact-wrapper {
        flex-direction: column;
    }
}
/* --- ESTILOS DEL CARRUSEL DE FONDO --- */
.hero {
    position: relative;
    background: none; /* Quitamos el fondo fijo oscuro */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Para que quede de fondo */
}

.hero-carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Efecto de transición suave */
}

.hero-carousel .slide.active {
    opacity: 1;
}

.hero-overlay {
    z-index: 1; /* El filtro oscuro por encima de las fotos */
}

.hero-content {
    z-index: 2; /* Los textos por encima de todo */
}