/* ====================================================
 *  VARIABLES Y CONFIGURACIÓN GLOBAL
 * =================================================== */
:root {
    --primary-color: #00ad43;
    --secondary-color: #333333;
    --light-gray: #f2f2f2;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

/* ====================================================
 *   LAYOUT GENERAL Y CONTENEDORES
 * ==================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====================================================
 *   HEADER Y NAVEGACIÓN
 * ==================================================== */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* ====================================================
 *   SECCIÓN HERO Y BANNERS
 * ==================================================== */
.hero, .service-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)), url('images/Encabezado.jpg');
    background-size: cover;
    background-position: center;
}

.hero {
    height: 500px;
}

.service-banner {
    height: 300px;
    margin-bottom: 50px;
}

.hero-content, .service-banner-content {
    z-index: 10;
}

.hero-content {
    width: 50%;
}

.service-banner-content {
    width: 100%;
    text-align: center;
}

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

.service-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* ====================================================
 *   BOTONES
 * ==================================================== */
.btn, .btn-service {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover, .btn-service:hover {
    background-color: #008c64;
}

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

.btn-white:hover {
    background-color: #f2f2f2;
}

.btn-service {
    padding: 8px 20px;
    align-self: flex-start;
}

/* ====================================================
 *   SECCIONES PRINCIPALES
 * ==================================================== */
.features {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

/* ABOUT */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    height: 400px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 24px;
    overflow: hidden;
    position: relative;
}

/* ====================================================
 *   EQUIPO
 * ==================================================== */
.team {
    padding: 40px 0;
}

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

.team-member {
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.member-image {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Miembros individuales */
#imagen-eduardo {
    background-image: url('images/equipo/eduardo-hildt.jpg');
}

#imagen-francisco {
    background-image: url('images/equipo/francisco-somma.jpg');
}

#imagen-gustavo {
    background-image: url('images/equipo/gustavo-hildt.jpg');
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.member-info p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

/* ====================================================
 *   LLAMADOS A LA ACCIÓN
 * ==================================================== */
.cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

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

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

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

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* ====================================================
 *   GALERÍA
 * ==================================================== */
#gallery-slideshow {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ====================================================
 *   PÁGINAS DE SERVICIO
 * ==================================================== */
.service-detail {
    padding: 60px 0;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-link:hover {
    color: #008c64;
}

.back-link i {
    margin-right: 5px;
}

/* Contenido de servicio */
.service-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.service-main {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background-color: var(--light-gray);
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-sidebar h3 {
    margin-bottom: 15px;
}

.service-sidebar ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-sidebar li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

/* ====================================================
 *   TARJETAS DE SERVICIO (DETALLE)
 * ==================================================== */
.service-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.service-feature-item {
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.service-features h3 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.service-feature-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.service-feature-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-cta {
    margin-top: 40px;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
}

.service-cta h3 {
    margin-bottom: 15px;
}

.service-cta p {
    margin-bottom: 20px;
}

/* ====================================================
 *   GRID DE SERVICIOS (PÁGINA PRINCIPAL)
 * ==================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-box {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.main-service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-service-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.main-service-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ====================================================
 *   ENLACE A WHATSAPP
 * ==================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebea5;
}

.whatsapp-float i {
    display: block;
}

/* ====================================================
 *   FORMULARIO DE CONTACTO
 * ==================================================== */
#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

#contactForm textarea {
    height: 150px;
}

#contactForm button {
    width: 100%;
}

/* ====================================================
 *   MEDIA QUERIES (RESPONSIVE)
 * ==================================================== */
@media (max-width: 992px) {
    .service-feature-list,
    .service-content {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .header-content {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        height: auto;
        padding: 80px 0;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

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

    .about-content {
        flex-direction: column;
    }

    .about-text,
    .about-image {
        width: 100%;
    }
    
    .service-feature-item {
        min-height: 220px;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .service-feature-list {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
 *   ENLACES DE REDES SOCIALES
 * ==================================================== */
.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

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

.social-link i {
    font-size: 18px;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Colores específicos para cada red social (opcional) */
.social-link:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link:hover i.fa-facebook-f {
    color: #1877f2;
}

.social-link:hover i.fa-linkedin-in {
    color: #0077b5;
}

/* Versión alternativa más compacta (opcional) */
.social-links-compact {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #bbb;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-compact:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link-compact i {
    font-size: 18px;
}
