/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS para colores - Estilo Caterpillar */
:root {
    --primary-color: #000000;
    --secondary-color: #FFD700;
    --accent-color: #FFA500;
    --background-white: #FFFFFF;
    --background-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    transition: opacity 0.45s ease;
}

html {
    scroll-behavior: smooth;
}

/* Transiciones entre páginas */
body.page-fade-in {
    animation: pageFadeIn 0.5s ease both;
}

body.is-exiting {
    opacity: 0.2;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header estilo Caterpillar */
header {
    background: var(--background-white);
    color: var(--text-dark);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

nav a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

nav a.active {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
}

/* Fondo difuminado con imagen detrás del texto */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("images/MAIN img.jpg");
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
    filter: blur(6px);
    opacity: 1;
    transform: scale(1.08);
    z-index: 0;
}

/* Botones del hero: Contactar blanco lleno, Ver Servicios borde blanco */
.hero .btn {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.hero .btn:hover {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.hero .btn.btn-outline {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.hero .btn.btn-outline:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones estilo Caterpillar */
.btn {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Secciones principales */
section {
    background: var(--background-white);
    margin: 0;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

section:nth-child(even) {
    background: var(--background-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Fondo difuminado detrás de ¿Por qué elegir PRANA? */
#por-que-elegirnos {
    position: relative;
    overflow: hidden;
}

#por-que-elegirnos::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("images/main 2.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: blur(6px) grayscale(0.35) saturate(0.9);
    opacity: 1;
    transform: scale(1.08);
    z-index: 0;
}

#por-que-elegirnos .section-container,
#por-que-elegirnos h2,
#por-que-elegirnos p,
#por-que-elegirnos .service-card h3 {
    position: relative;
    z-index: 1;
}

#por-que-elegirnos h2 { color: #FFFFFF; }
#por-que-elegirnos .service-card h3 { color: #FFFFFF; }
#por-que-elegirnos .service-card p { color: rgba(255,255,255,0.92); }

#por-que-elegirnos .service-card {
    background: rgba(0,0,0,0.35);
    border-left-color: #FFD700;
}

/* Fondos para secciones de Servicios */
#servicios-especializados,
#tecnologia {
    position: relative;
    overflow: hidden;
}




#servicios-especializados::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("images/drone.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.06);
    z-index: 0;
}

#tecnologia::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("images/Agisoft.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.06);
    z-index: 0;
}

#servicios-especializados .section-container,
#tecnologia .section-container {
    position: relative;
    z-index: 1;
}

#servicios-especializados h2,
#tecnologia h2 { color: #FFFFFF; }

#servicios-especializados .service-card h3 {
    color: #000000;
    text-shadow: none;
}

#tecnologia .service-card h3 { 
    color: #FFFFFF; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

#servicios-especializados .service-card p {
    color: rgba(0,0,0,0.8);
    text-shadow: none;
}

#tecnologia .service-card p { 
    color: rgba(255,255,255,0.92); 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#servicios-especializados .service-card {
    background: rgba(255,255,255,0.95);
    border-left-color: #FFD700;
    backdrop-filter: blur(10px);
}

#tecnologia .service-card {
    background: rgba(0,0,0,0.35);
    border-left-color: #FFD700;
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
#servicios-principales .services-grid,
#servicios-especializados .services-grid,
#servicios-construccion .services-grid,
#tecnologia .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#servicios-principales .service-card,
#servicios-especializados .service-card,
#servicios-construccion .service-card,
#tecnologia .service-card {
    flex: 1 1 300px;
    max-width: 380px;
}

/* Centrado elegante de la última fila solo en la sección de servicios del landing */
#servicios-destacados .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#servicios-destacados .service-card {
    flex: 1 1 300px;
    max-width: 360px;
}

/* Centrar la tarjeta de Construcciones cuando cae sola en la fila */
.service-card--construcciones {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
}

.service-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Ícono decorativo eliminado */

/* Fotos del equipo en Nosotros */
.team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 3px solid var(--secondary-color);
}

footer p {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        height: 45px;
        max-width: 150px;
    }
    
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

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

.service-card {
    animation: fadeInUp 0.9s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

/* ===== Formularios globales ===== */
form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

/* Afinar el select del formulario de contacto si trae estilos inline */
#contactForm select {
    padding: 1rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    background: var(--background-white) !important;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
    border: 2px solid var(--background-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Galería de Servicios - Ancho Completo */
.service-section {
    width: 100%;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.service-section:nth-child(1) { animation-delay: 0.1s; }
.service-section:nth-child(2) { animation-delay: 0.2s; }
.service-section:nth-child(3) { animation-delay: 0.3s; }
.service-section:nth-child(4) { animation-delay: 0.4s; }
.service-section:nth-child(5) { animation-delay: 0.5s; }
.service-section:nth-child(6) { animation-delay: 0.6s; }
.service-section:nth-child(7) { animation-delay: 0.7s; }
.service-section:nth-child(8) { animation-delay: 0.8s; }
.service-section:nth-child(9) { animation-delay: 0.9s; }

.service-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.service-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.service-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.service-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Colores distintivos por categoría */
.service-section[data-categoria="mensuras"] .service-content h2::after {
    background: var(--secondary-color);
}

.service-section[data-categoria="verificaciones"] .service-content h2::after {
    background: var(--accent-color);
}

.service-section[data-categoria="loteos"] .service-content h2::after {
    background: #4CAF50;
}

.service-section[data-categoria="asesoramiento"] .service-content h2::after {
    background: #2196F3;
}

.service-section[data-categoria="fotogrametria"] .service-content h2::after {
    background: #9C27B0;
}

.service-section[data-categoria="planimetria"] .service-content h2::after {
    background: #FF9800;
}

.service-section[data-categoria="replanteo"] .service-content h2::after {
    background: #F44336;
}

.service-section[data-categoria="planos"] .service-content h2::after {
    background: #607D8B;
}

.service-section[data-categoria="construcciones"] .service-content h2::after {
    background: #795548;
}

/* Efectos especiales para imágenes */
.service-section[data-categoria="mensuras"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.service-section[data-categoria="verificaciones"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.3);
}

.service-section[data-categoria="loteos"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.3);
}

.service-section[data-categoria="asesoramiento"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.3);
}

.service-section[data-categoria="fotogrametria"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(156, 39, 176, 0.3);
}

.service-section[data-categoria="planimetria"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(255, 152, 0, 0.3);
}

.service-section[data-categoria="replanteo"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(244, 67, 54, 0.3);
}

.service-section[data-categoria="planos"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(96, 125, 139, 0.3);
}

.service-section[data-categoria="construcciones"] .service-image:hover {
    box-shadow: 0 20px 60px rgba(121, 85, 72, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para galería de ancho completo */
@media (max-width: 1200px) {
    .service-images {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .service-image {
        height: 280px;
    }
    
    .service-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .service-content {
        padding: 0 1rem;
    }
    
    .service-content h2 {
        font-size: 2rem;
    }
    
    .service-content p {
        font-size: 1.1rem;
    }
    
    .service-images {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .service-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .service-content p {
        font-size: 1rem;
    }
    
    .service-images {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .service-image {
        height: 220px;
    }
}

/* Estilos para página de contacto */
.contact-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.contact-section {
    background: var(--background-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.contact-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.contact-section:hover .contact-icon {
    transform: scale(1.1);
}

.contact-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.02);
}

.contact-label {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-value {
    color: white;
}

.map-container {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.location-info {
    text-align: center;
    margin-top: 2rem;
}

.location-info p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.map-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-hero {
        padding: 2rem 0;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .contact-content p {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-section h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
}
