/* styles.css - Estilos para la página de servicios IoT */

:root {
    /* Paleta de colores corporativa (Rojo, Negro, Blanco, Gris) */
    --primary-color: #e20613;       /* Rojo principal ApropiaTIC */
    --secondary-color: #121212;     /* Negro casi puro (Fondo Principal) */
    --accent-color: #ff3333;        /* Rojo brillante para acentos */
    --card-bg: #1e1e1e;             /* Gris oscuro (Fondo Tarjetas) */
    --text-main: #f5f5f5;           /* Blanco humo (Texto principal) */
    --text-muted: #bbbbbb;          /* Gris claro (Texto secundario) */
    --text-light: #ffffff;          /* Blanco puro (Títulos) */
    --border-color: #333333;        /* Bordes sutiles */
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5); /* Sombra profunda */
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: #ff6666;
    text-decoration: none;
}

p {
    text-align: justify;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ======== Tipografía ======== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light) !important; /* Forced white for visibility */
    margin-bottom: 20px;
}

/* ======== Layout & Utilities ======== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.section-padding { padding: 100px 0; } /* Increased padding for better spacing */

/* Grid System with Correct Order & Precedence */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    width: 100%; /* Default to 100% (mobile first) */
}

/* Specific widths for tablet */
@media (min-width: 768px) {
    .col-md-6 { width: 50% !important; }
    .col-md-4 { width: 33.333% !important; }
    .col-md-3 { width: 25% !important; }
}

/* Specific widths for desktop */
@media (min-width: 992px) {
    .col-lg-7 { width: 58.333% !important; }
    .col-lg-6 { width: 50% !important; }
    .col-lg-5 { width: 41.666% !important; }
    .col-lg-4 { width: 33.333% !important; }
    .col-lg-3 { width: 25% !important; }
    
    .packagin { 
        width: 35% !important; 
        flex: 0 0 35% !important; 
        max-width: 35% !important; 
    }
}
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }


.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }


/* ======== Botones (Estilo Alarms) ======== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #c40510;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ======== Banner Slider (Estilo Alarms Adaptado) ======== */
#banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.banner-slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(226, 6, 19, 0.4) 100%);
    z-index: 100;
}

.banner-slide .container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 101;
}

.banner-content {
    position: relative;
    z-index: 102;
    max-width: 800px;
    padding: 0 15px;
    color: var(--text-light);
    text-align: center;
    width: 100%;
}

.banner-content h1 {
    color: var(--text-light) !important;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.8);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    color: var(--text-main);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.banner-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 105;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 104;
    line-height: 0;
}

.banner-wave path {
    fill: var(--secondary-color);
}

/* ======== Sección Descripción con Figuras (Dark Neumorphism) ======== */
#descripcion-servicio {
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 80px 0;
}

#descripcion-servicio .descripcion-geom {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#descripcion-servicio .geom-shape {
    position: absolute;
}

#descripcion-servicio .geom-square {
    width: 140px;
    height: 140px;
    transform: rotate(45deg);
    border-radius: 20px;
    background: var(--secondary-color);
    box-shadow: 
        inset 8px 8px 16px rgba(0, 0, 0, 0.8), 
        inset -8px -8px 16px rgba(30, 30, 30, 0.5),
        0 1px 2px rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#descripcion-servicio .geom-square:hover {
    transform: rotate(45deg) scale(1.02);
    box-shadow: 
        inset 12px 12px 24px rgba(0, 0, 0, 0.9), 
        inset -12px -12px 24px rgba(40, 40, 40, 0.6);
    background: #151515;
}

#descripcion-servicio .descripcion-geom .s1 { top: 5%; right: 10%; width: 140px; height: 140px; opacity: 1; }
#descripcion-servicio .descripcion-geom .s2 { top: 25%; right: 45%; width: 110px; height: 110px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s3 { top: 50%; right: 5%; width: 180px; height: 180px; opacity: 1; }
#descripcion-servicio .descripcion-geom .s4 { top: 75%; right: 35%; width: 130px; height: 130px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s11 { top: 15%; right: 65%; width: 90px; height: 90px; opacity: 0.8; }
#descripcion-servicio .descripcion-geom .s5 { top: 12%; right: 35%; width: 80px; height: 80px; opacity: 0.85; }
#descripcion-servicio .descripcion-geom .s6 { top: 38%; right: 15%; width: 95px; height: 95px; opacity: 0.9; }
#descripcion-servicio .descripcion-geom .s7 { top: 32%; right: 5%; width: 60px; height: 60px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .s8 { top: 62%; right: 55%; width: 75px; height: 75px; opacity: 0.8; }
#descripcion-servicio .descripcion-geom .s9 { top: 85%; right: 15%; width: 85px; height: 85px; opacity: 0.85; }
#descripcion-servicio .descripcion-geom .s10 { top: 45%; right: 70%; width: 65px; height: 65px; opacity: 0.75; }
#descripcion-servicio .descripcion-geom .s12 { top: 92%; right: 45%; width: 70px; height: 70px; opacity: 0.8; }
#descripcion-servicio .descripcion-geom .s13 { top: 8%; right: 55%; width: 40px; height: 40px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .s14 { top: 22%; right: 25%; width: 45px; height: 45px; opacity: 0.65; }
#descripcion-servicio .descripcion-geom .s15 { top: 58%; right: 35%; width: 35px; height: 35px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .t1 { top: 42%; right: 30%; width: 50px; height: 50px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .t2 { top: 70%; right: 20%; width: 45px; height: 45px; opacity: 0.7; }
#descripcion-servicio .descripcion-geom .t3 { top: 2%; right: 5%; width: 55px; height: 55px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .t4 { top: 52%; right: 50%; width: 30px; height: 30px; opacity: 0.5; }
#descripcion-servicio .descripcion-geom .t5 { top: 95%; right: 5%; width: 40px; height: 40px; opacity: 0.6; }
#descripcion-servicio .descripcion-geom .t6 { top: 68%; right: 75%; width: 30px; height: 30px; opacity: 0.5; }

.descripcion-content {
    position: relative;
    z-index: 2;
}

.descripcion-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.descripcion-image img {
    border-radius: 20px;
    width: 100%;
    max-width: 380px; /* Reduced size to not "estorbe" */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1); /* Subtle border */
    transition: var(--transition);
    filter: brightness(0.9) contrast(1.1);
}

.descripcion-image img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(226, 6, 19, 0.15), /* Red glow on hover */
        0 0 0 1px rgba(226, 6, 19, 0.3);
    filter: brightness(1);
}

.descripcion-text h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2rem;
}

.descripcion-text p {
    color: var(--text-muted);
}

/* ======== Tarjetas / Steps (Opaque Style) ======== */
.step {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px; /* Added margin for stacking */
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(226, 6, 19, 0.2);
    border-color: var(--primary-color);
    background-color: #252525;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1); /* Increased visibility slightly */
    position: absolute;
    top: 0;
    right: 20px;
    line-height: 1;
}

/* ======== Feature Items ======== */
.feature-item {
    display: flex;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    background-color: #252525;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.feature-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: rgba(226, 6, 19, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.feature-text h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ======== Responsive ======== */
@media (max-width: 992px) {
    .banner-content h1 { font-size: 2.8rem; }
    #descripcion-servicio .descripcion-geom {
        width: 100%;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    #banner { height: 80vh; }
    .banner-content h1 { font-size: 2.2rem; }
    .banner-buttons { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
    .col-lg-6, .col-lg-4, .col-lg-3 { width: 100%; }
}

/* ======== Nuevas Secciones (Estilo Alarms Adaptado) ======== */

/* --- Soluciones IoT (Cards) --- */
.sistema-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    margin-bottom: 30px; /* Added margin for stacking */
}

.sistema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.sistema-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(226, 6, 19, 0.1) 0%, rgba(18, 18, 18, 1) 100%);
    position: relative;
    overflow: hidden;
}

.sistema-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    z-index: 2;
    transition: var(--transition);
}

.sistema-card:hover .sistema-icon i {
    transform: scale(1.2);
    color: var(--text-light);
}

.sistema-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sistema-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 10px;
}

.sistema-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.sistema-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sistema-features {
    margin-bottom: 25px;
    margin-top: auto;
}

.sistema-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.sistema-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* --- Contacto Completo (Form + Info) --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contact-info {
    padding: 0 15px;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-box:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(226, 6, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-media h4 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--primary-color);
    z-index: 1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #151515;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 6, 19, 0.1);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ======== FOOTER (Añadido) ======== */
footer {
    background-color: #0e1620;
    color: var(--text-muted);
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-column p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-column p a {
    color: var(--text-muted);
}

.footer-column p a:hover {
    color: var(--primary-color);
}

footer .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

footer .social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}
