/* ============================================
   CIRROS CONSTRUCTORA - Estilos CSS
   Diseño profesional, moderno y responsive
   ============================================ */

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores principales basados en el logo */
    --primary-color: #8B1A1A;        /* Rojo oscuro principal */
    --secondary-color: #5C1111;      /* Marrón/rojo muy oscuro */
    --accent-color: #A52A2A;         /* Rojo medio para acentos */
    --dark-color: #2C2C2C;           /* Gris oscuro */
    --light-color: #F5F5F5;           /* Gris claro */
    --white: #FFFFFF;                 /* Blanco */
    --text-dark: #333333;             /* Texto oscuro */
    --text-light: #666666;            /* Texto claro */
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ========== UTILIDADES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-contact {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 3px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/ChatGPT Image 3 dic 2025, 12_10_57 p.m..png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.85) 0%, rgba(92, 17, 17, 0.85) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 1.5rem;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== ANIMACIONES ========== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SOBRE NOSOTROS ========== */
.about {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--white);
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.about-bg {
    background-image: url('../img/pexels-pixabay-159358.jpg');
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.about-card {
    background: var(--light-color);
    padding: var(--spacing-lg);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.2);
    border-color: var(--primary-color);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.values-list {
    text-align: left;
    margin-top: var(--spacing-md);
}

.value-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.value-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* ========== SECCIÓN CV CORPORATIVO ========== */
.cv-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cv-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
}

.cv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

.cv-header-text h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.cv-header-text p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.cv-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cv-viewer-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 26, 26, 0.1);
}

.cv-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.cv-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cv-download-btn,
.cv-open-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 30px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.cv-download-btn:hover,
.cv-open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.3);
}

.cv-download-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border-radius: 5px;
    transition: var(--transition-fast);
}

.cv-download-link:hover {
    background: var(--light-color);
    text-decoration: none;
}

/* ========== SERVICIOS ========== */
.services {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--light-color);
    overflow: hidden;
}

.services-bg {
    background-image: url('../img/ChatGPT Image 3 dic 2025, 12_18_41 p.m..png');
}

.services .container {
    position: relative;
    z-index: 1;
}

/* ========== CARRUSEL DE SERVICIOS ========== */
.services-carousel-wrapper {
    position: relative;
    padding: var(--spacing-md) 0 var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.services-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md) 0;
    margin: 0 -10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.service-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 300px;
    scroll-snap-align: center;
    padding: 0 10px;
}

.service-card-inner {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-medium);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.service-card:hover .service-card-inner {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 26, 26, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    transition: var(--transition-medium);
    position: relative;
    box-shadow: 0 5px 20px rgba(139, 26, 26, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 8px 30px rgba(139, 26, 26, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    transform: scale(1.3);
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
    font-size: 1rem;
}

.service-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-slow);
    opacity: 0;
}

.service-card:hover .service-decoration {
    opacity: 1;
    transform: scale(1.5);
}

/* Controles del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 26, 26, 0.3);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(139, 26, 26, 0.5);
}

.carousel-indicator:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ========== ESPECIALIDADES ========== */
.specialties {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--white);
    overflow: hidden;
}

.specialties-bg {
    background-image: url('../img/pexels-rezwan-1216544.jpg');
}

.specialties .container {
    position: relative;
    z-index: 1;
}

/* ========== CARRUSEL DE ESPECIALIDADES ========== */
.specialties-carousel-wrapper {
    position: relative;
    padding: var(--spacing-md) 0 var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.specialties-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md) 0;
    margin: 0 -10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

.specialties-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.specialty-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 300px;
    scroll-snap-align: center;
    padding: 0 10px;
}

.specialty-card-inner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.3);
    border: 2px solid transparent;
}

.specialty-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15) 0%, transparent 50%);
    transition: var(--transition-slow);
    opacity: 0;
}

.specialty-card:hover .specialty-card-inner::before {
    opacity: 1;
}

.specialty-card:hover .specialty-card-inner {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 26, 26, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.specialty-image {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    transition: var(--transition-medium);
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.specialty-card:hover .specialty-image {
    transform: rotate(360deg) scale(1.2);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.specialty-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    font-weight: 600;
    transition: var(--transition-fast);
}

.specialty-card:hover h3 {
    transform: translateY(-5px);
}

.specialty-card p {
    position: relative;
    z-index: 1;
    opacity: 0.95;
    line-height: 1.8;
    flex-grow: 1;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.specialty-card:hover p {
    opacity: 1;
}

.specialty-decoration {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-slow);
    opacity: 0;
}

.specialty-card:hover .specialty-decoration {
    opacity: 1;
    transform: scale(1.8);
}

/* Controles específicos para especialidades */
.specialties-prev,
.specialties-next {
    background: rgba(139, 26, 26, 0.9);
    backdrop-filter: blur(10px);
}

.specialties-prev:hover,
.specialties-next:hover {
    background: rgba(92, 17, 17, 0.95);
}

.specialties-prev {
    left: -25px;
}

.specialties-next {
    right: -25px;
}

/* ========== GALERÍA DE PROYECTOS ========== */
.gallery {
    padding: var(--spacing-xl) 0;
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-medium);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 26, 26, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(139, 26, 26, 0.95), transparent);
    color: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ========== TESTIMONIOS ========== */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 26, 26, 0.2);
}

.testimonial-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.testimonial-card h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== ESTADÍSTICAS ========== */
.stats {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== CONTACTO ========== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--light-color);
    padding: var(--spacing-lg);
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.map-wrapper {
    margin-top: var(--spacing-xl);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    border: none;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 70px;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    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-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========== BOTÓN FLOTANTE DE WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-fast);
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: translateY(-3px) scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
    font-family: var(--font-primary);
    font-weight: 500;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark-color);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: var(--transition-medium);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .cv-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-viewer-wrapper {
        height: 500px;
    }
    
    .cv-actions {
        flex-direction: column;
    }
    
    .cv-download-btn,
    .cv-open-btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .specialty-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
    
    .specialties-prev {
        left: 10px;
    }
    
    .specialties-next {
        right: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Desactivar background-attachment: fixed en móviles */
    .hero-background,
    .section-background {
        background-attachment: scroll;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        bottom: 90px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(139, 26, 26, 0.85), transparent);
    }
}

/* ========== ANIMACIONES AL SCROLL ========== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== EFECTOS ADICIONALES ========== */
.service-card,
.about-card,
.testimonial-card,
.specialty-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para animaciones escalonadas */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

