/* ======================================
   TABLA DE CONTENIDOS
   ======================================
   1. Variables y reset
   2. Elementos generales
   3. Encabezado y navegación
   4. Sección hero
   5. Sección sobre mí
   6. Sección galería y carrusel
   7. Sección proceso creativo
   8. Sección cotización
   9. Sección contacto
   10. Footer
   11. Modal de galería
   12. Media queries
   ====================================== */

/* ======================================
   1. VARIABLES Y RESET
   ====================================== */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
}

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

/* ======================================
   2. ELEMENTOS GENERALES
   ====================================== */
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-color);
}

.section {
    padding: 5rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-family: var(--font-secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* ======================================
   3. ENCABEZADO Y NAVEGACIÓN
   ====================================== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* ======================================
   4. SECCIÓN HERO
   ====================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('nebulosas.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ======================================
   5. SECCIÓN SOBRE MÍ
   ====================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ======================================
   6. SECCIÓN GALERÍA Y CARRUSEL
   ====================================== */
/* Estilo de galería clásica */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
    aspect-ratio: 1/1;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Estilos del Carrusel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.carousel-caption p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.more-info {
    color: var(--accent-color);
    font-style: italic;
    cursor: pointer;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* ======================================
   7. SECCIÓN PROCESO CREATIVO
   ====================================== */
.proceso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.proceso-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-family: var(--font-secondary);
}

.proceso-content > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.proceso-pasos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proceso-paso {
    display: flex;
    gap: 1.5rem;
}

.paso-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.paso-detalle h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.proceso-imagen {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.proceso-imagen img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.proceso-imagen:hover img {
    transform: scale(1.05);
}

.imagen-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ======================================
   8. SECCIÓN COTIZACIÓN
   ====================================== */
.cotizacion {
    background-color: var(--light-color);
    position: relative;
    padding-bottom: 6rem;
}

.cotizacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.quote-info h3, 
.quote-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-family: var(--font-secondary);
}

.quote-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Tarjetas de servicios */
.service-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Información de precios */
.pricing-info {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pricing-info h4,
.quote-process h4,
.testimonials h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pricing-info ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.pricing-info ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-info ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.quote-note {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
}

/* Proceso de cotización */
.quote-process {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-process ol {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.quote-process ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Información de contacto para cotización */
.quote-contact {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quote-contact p {
    margin-bottom: 1.5rem;
}

.quote-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quote-details ul {
    list-style-type: none;
    margin-bottom: 0;
}

.quote-details ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.quote-details ul li i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}

.quote-email-button {
    text-align: center;
    margin: 2rem 0;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-email:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.btn-email i {
    margin-right: 0.8rem;
}

.quote-contact-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quote-contact-info p {
    margin-bottom: 0.5rem;
}

/* Testimonios */
.testimonials {
    margin-top: 2rem;
}

.testimonial {
    background-color: #f8f9fa;
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.testimonial p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: var(--dark-color);
}

/* ======================================
   9. SECCIÓN CONTACTO
   ====================================== */
.contact {
    background-color: var(--dark-color);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-secondary);
}

.contact-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: white;
}

.contact-detail p {
    opacity: 0.8;
}

/* Formulario de contacto */
.form-control {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
    resize: vertical;
}

/* Contenedor de redes sociales */
.contact-media {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-media h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-secondary);
}

.contact-media > p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.social-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-media-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-media-item:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-media-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ======================================
   10. FOOTER
   ====================================== */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ======================================
   11. MODAL DE GALERÍA
   ====================================== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    max-width: 90%;
    width: auto;
    margin-bottom: 2rem;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.modal-text {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    color: white;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.modal-meta {
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1010;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Botones de navegación para el modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.modal-nav.prev {
    left: 1rem;
}

.modal-nav.next {
    right: 1rem;
}

.modal-nav:hover {
    background-color: var(--accent-color);
}

/* ======================================
   12. MEDIA QUERIES
   ====================================== */
/* Pantallas grandes y medianas */
@media (max-width: 992px) {
    .proceso-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-types {
        grid-template-columns: 1fr 1fr;
    }
}

/* Pantallas pequeñas y móviles */
@media (max-width: 768px) {
    /* Estructura general */
    .about-grid,
    .quote-content,
    .contact-container,
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    
    .service-types {
        grid-template-columns: 1fr;
    }
    
    /* Sección hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* Navegación */
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    /* Galería */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Proceso */
    .proceso-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carrusel */
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
    }
}