/* ========================================
   TRABAJOS VERTICALES SEVILLA - ESTILOS PRINCIPALES
   ======================================== */

/* Variables CSS */
:root {
    --color-principal: #FF6B35;
    --color-secundario: #004E89;
    --color-texto: #333333;
    --color-gris-claro: #F5F5F5;
    --color-blanco: #FFFFFF;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-texto: 'Open Sans', sans-serif;
    --sombra-suave: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-texto);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 60px 0;
}

/* ========================================
   NAVEGACIÓN SUPERIOR
   ======================================== */
.header {
    background-color: var(--color-principal);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--sombra-suave);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: var(--color-blanco);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--fuente-titulos);
}

/* Logo responsive para móvil */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        line-height: 1.2;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-blanco);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Menú hamburguesa móvil */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-blanco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   TELÉFONO FLOTANTE
   ======================================== */
.telefono-flotante {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: var(--color-blanco);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--sombra-media);
    z-index: 999;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.telefono-flotante:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.telefono-flotante i {
    font-size: 1.3rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   HERO / SECCIÓN PRINCIPAL
   ======================================== */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-blanco);
    max-width: 900px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ========================================
   BOTONES CTA
   ======================================== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #e55a25;
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

.btn-secondary {
    background-color: var(--color-blanco);
    color: var(--color-principal);
}

.btn-secondary:hover {
    background-color: var(--color-gris-claro);
    transform: translateY(-3px);
}

/* ========================================
   TARJETAS / FICHAS
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-blanco);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
    border-color: var(--color-principal);
}

.card-icon {
    font-size: 3rem;
    color: var(--color-principal);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

.card a {
    color: var(--color-principal);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.card a:hover {
    text-decoration: underline;
}

/* Hacer toda la tarjeta clicable */
.card a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ========================================
   SECCIONES DE CONTENIDO
   ======================================== */
.contenido-intro {
    background: var(--color-blanco);
    padding: 60px 0;
}

.texto-destacado {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.texto-destacado strong {
    color: var(--color-principal);
    font-weight: 700;
}

.seccion-alternada {
    background: var(--color-gris-claro);
}

.seccion-imagen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.seccion-imagen img {
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
}

/* ========================================
   PROCESO / FLUJOGRAMA
   ======================================== */
.proceso-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.proceso-step {
    text-align: center;
    position: relative;
    flex: 0 0 auto;
    max-width: 200px;
}

.proceso-step::after {
    content: '\2192';
    position: absolute;
    right: -30px;
    top: 30px;
    font-size: 2rem;
    color: var(--color-principal);
    font-weight: bold;
}

.proceso-step:last-child::after {
    display: none;
}

.proceso-numero {
    width: 60px;
    height: 60px;
    background: var(--color-principal);
    color: var(--color-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--sombra-suave);
}

.proceso-step h4 {
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .proceso-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .proceso-step::after {
        content: '\2193';
        right: auto;
        top: auto;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .proceso-step:last-child::after {
        display: none;
    }
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonio {
    background: var(--color-blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    position: relative;
}

.testimonio::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-principal);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.testimonio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonio-info h4 {
    margin: 0;
    color: var(--color-secundario);
    font-size: 1rem;
}

.testimonio-ubicacion {
    color: #666;
    font-size: 0.9rem;
}

.testimonio-texto {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* ========================================
   FAQs
   ======================================== */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--color-blanco);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.faq-pregunta {
    background: var(--color-secundario);
    color: var(--color-blanco);
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-pregunta:hover {
    background: #003d6e;
}

.faq-pregunta i {
    transition: transform 0.3s ease;
}

.faq-pregunta.active i {
    transform: rotate(180deg);
}

.faq-respuesta {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-respuesta.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-secundario);
    color: var(--color-blanco);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--color-blanco);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--color-blanco);
}

.footer-mapa {
    border-radius: 10px;
    overflow: hidden;
}

.footer-mapa iframe {
    width: 100%;
    height: 250px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   PÁGINA DE ARTÍCULO / BLOG
   ======================================== */
.articulo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.articulo-header h1 {
    text-align: center;
}

.articulo-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.articulo-contenido {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.articulo-contenido h2 {
    margin-top: 2.5rem;
    color: var(--color-secundario);
}

.articulo-contenido ul, .articulo-contenido ol {
    margin: 1rem 0 1rem 2rem;
}

.articulo-contenido li {
    margin-bottom: 0.5rem;
}

/* ========================================
   PÁGINA DE CONTACTO
   ======================================== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contacto-info {
    background: var(--color-gris-claro);
    padding: 2rem;
    border-radius: 15px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contacto-item i {
    color: var(--color-principal);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contacto-mapa iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 968px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    
    .seccion-imagen,
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-principal);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--sombra-media);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .telefono-flotante {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .proceso-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonios-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .telefono-flotante {
        font-size: 0.85rem;
        padding: 10px 15px;
        bottom: 15px;
        left: 15px;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
