/*
Theme Name: Coproseas One Page
Theme URI: http://coproseas.local
Author: Flavio
Description: Tema personalizado One Page para Coproseas
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coproseas
*/

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    height: 70px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .logo img {
    height: auto;
    max-height: 60px;
    width: auto;
    margin-top: 5px;
    margin-bottom: 5px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    margin-left: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 70px;
}

header nav a:hover {
    color: #f58e13;
}

header nav .btn-cotizacion {
    background: #e97615;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 20px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
}

header nav .btn-cotizacion:hover {
    background: #f58e13;
    color: #000;
}

/* Main y secciones */
main {
    margin-top: 0;
}

section {
    display: block;
    padding: 100px 20px 80px;
    min-height: calc(100vh - 140px);
}

section:nth-child(even) {
    background: #f5f5f5;
}

section h1, section h2 {
    margin-bottom: 15px;
}

/* Hero Section Inicio */
.inicio-bg {
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/inicio-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.inicio-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.inicio-contenido {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.inicio-contenido h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.inicio-contenido .btn-cotizacion {
    background: #e97615;
    color: #fff;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
}

.inicio-contenido .btn-cotizacion:hover {
    background: #f58e13;
    color: #000;
}

/* Servicios */
.servicios-contenido {
    position: relative;
    z-index: 1; /* contenido adelante */
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.servicios-contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: nowrap; /* fuerza las tres en la misma fila */
    margin-top: 50px;
}

.servicio {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    width: 340px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.servicio:hover {
    transform: translateY(-12px);
}

.servicio img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.servicio h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.servicio p {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

/* Botón Ver más */
.btn-vermas {
    display: inline-block;
    margin-top: 15px;
    background: #0056b3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-vermas:hover {
    background: #007bff;
    color: #fff;
}

/* Fondo para la sección Servicios */
.servicios-bg {
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/servicios-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 70px);
    position: relative;
    color: #fff;
    text-align: center;
}

.servicios-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

/* Fondo para la sección Proyectos */
.proyectos-bg {
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/proyectos-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 70px);
    position: relative;
}

.proyectos-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.proyectos-contenido {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center; /* centra el título */
    max-width: 1100px;
    margin: 0 auto;     /* centra el bloque completo */
    padding: 40px;
}

/* Tarjetas de Proyectos con opacidad */
.proyecto-card {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.nosotros-contenido {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.nosotros-contenido h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto 40px; /* centrado con espacio debajo */
}

/* Layout en Nosotros */
.nosotros-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Texto y representante */
.nosotros-texto {
    flex: 1;
    text-align: center;
}

.nosotros-texto h3,
.nosotros-texto p {
    color: #fff;   /* blanco */
}

.nosotros-texto p {
    margin-bottom: 20px;
}

.representante {
    margin-top: 10px;
    text-align: center;
}

.representante img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.representante h4 {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f5f5f5;
}

.representante p {
    margin-top: 0;
    font-size: 1rem;
    color: #f58e13;
    font-weight: 600;
}

/* Bloque de datos */
.nosotros-datos {
    flex: 1;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 30px;
    color: #000;
    box-shadow: 
}

/* Fondo para la sección Contacto */
.contacto-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 70px);
    position: relative;
    color: #fff;
    text-align: center;
}

.contacto-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.contacto-contenido {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contacto h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.contacto form {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.8); /* blanco con 80% opacidad */
    padding: 60px;
    border-radius: 20px;
    /* quitamos la sombra */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto input,
.contacto textarea {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    width: 100%;
}

.contacto textarea {
    min-height: 180px;
}

.contacto button {
    background: #e97615;
    color: #fff;
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contacto button:hover {
    background: #f58e13;
    color: #000;
    transform: scale(1.05);
}

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;   /* o fixed si quieres que quede siempre abajo */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box; /* asegura que padding no sume ancho extra */
    overflow-x: hidden;     /* evita que aparezca scroll horizontal */
}

/* Slider en Inicio */
.inicio-slider {
  position: relative;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.inicio-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.inicio-slider .slide.active {
  opacity: 1;
}

.inicio-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* overlay oscuro */
  z-index: 1;
}

.inicio-slider .inicio-contenido {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.inicio-slider {
  display: flex;               /* activa flexbox */
  justify-content: center;     /* centra horizontal */
  align-items: center;         /* centra vertical */
}

.inicio-slider .inicio-contenido {
  position: relative;
  z-index: 2;
}

/* Mantén tu fondo original */
.nosotros-bg {
    position: relative;
    min-height: calc(100vh - 70px);
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/nosotros-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Rectángulo negro centrado */
.nosotros-overlay {
    position: absolute;
    top: 50%;               /* centrado vertical */
    left: 50%;              /* centrado horizontal */
    transform: translate(-50%, -50%);
    width: 65%;             /* ancho controlado */
    height: 580px;          /* << aquí ajustas la altura a tu gusto */
    background: rgba(0,0,0,0.8);
    border-radius: 20px;
    z-index: 0;
}

/* Contenido encima */
.nosotros-contenido {
    position: relative;
    z-index: 1;             /* texto encima del recuadro */
    padding: 40px;
    margin-top: 40px;       /* separa el recuadro del título */
}







